下面函数在二叉搜索树中查找值 x。横线处应填写( )。

sx936278 单选题 共 个子题
TreeNode *searchBST(TreeNode *root, int x) {
if (root == nullptr || root->val == x)
return root;
if (x < root->val)
return searchBST(root->left, x);
return __________________________;
}
A

searchBST(root->left, x)

B

searchBST(root->right, x)

C

searchBST(root, x + 1)

D

root->right

正在加载题目数据…
已答 /
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析
讨论
发布
登录后参与讨论 立即登录
发布讨论需先绑定并验证手机号 去绑定手机号
加载中…
我
我
回复 @
回复 @
发送
还没有人讨论,来发表第一条吧