You are viewing a single comment's thread. Return to all comments →
The example input given to the problem in the description has Node 5 on left of Root node 1.
Which I do think will fail your solution.
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 →
The example input given to the problem in the description has Node 5 on left of Root node 1.
Which I do think will fail your solution.