单选题 适中
#19792

以下函数实现了二叉排序树(BST)的( )操作。 TreeNode * op ( TreeNode * root , int x ) { if ( ! root…

以下函数实现了二叉排序树(BST)的( )操作。

TreeNode* op(TreeNode* root, int x) {
	if (!root) return new TreeNode(x);
	if (x < root->val)
		root->left = op(root->left, x);
	else
		root->right = op(root->right, x);
	return root;
}
未登录也能判分,登录后才会记录
答案与解析
正确答案:B
这道题暂未补解析。