You are viewing a single comment's thread. Return to all comments →
what if Node A is an ancestor of Node B, do we return A or its parent?
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 →
what if Node A is an ancestor of Node B, do we return A or its parent?