You are viewing a single comment's thread. Return to all comments →
you have given the end 'return root' in else condition where as it should be returned in every condition. just remove last else...
Seems like cookies are disabled on this browser, please enable them to open this website
Binary Search Tree : Lowest Common Ancestor
You are viewing a single comment's thread. Return to all comments →
you have given the end 'return root' in else condition where as it should be returned in every condition. just remove last else...