二叉搜索树的查找——递归算法:
bool Find(BTreeNode* BST,ElemType& item)
{
if (BST==NULL)
return false; //查找失败
else {
if (item==BST->data){
item=BST->data;//查找成功
return ___________;}
else if(itemdata)
return Find(______________,item);
else return Find(_______________,item);
}//if
}
bool Find(BTreeNode* BST,ElemType& item)
{
if (BST==NULL)
return false; //查找失败
else {
if (item==BST->data){
item=BST->data;//查找成功
return ___________;}
else if(itemdata)
return Find(______________,item);
else return Find(_______________,item);
}//if
}
举一反三
- 二叉搜索树的查找——递归算法:bool Find(BTreeNode BST,ElemType
- BST用来表示二叉查找树。
- If a buyer wants to return an item, all Amazon sellers are required to accept returns and process refunds. After a return request is approved, it is advisable that you should not issue a refund until you receive the item back from the buyer. ( )
- Mr. Hancock will soon go _________a journeywithhis daughter to return the item to its old home.
- 阅读以下代码,下列说法中错误的是( )。<br>[6,2].forEach(function(item,i,arr){return arr[i]=item*2;});