Recursive function to find the rightmost leaf in a tree given a node

后端 未结 0 1803
执笔经年
执笔经年 2020-12-03 15:28

Will this code work to find the rightmost leaf recursively. Thank you

 Node* findRightMostLeaf(Node* curNode){
 if ( curNode== null) 
     return null;
 if (c         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题