You are viewing a single comment's thread. Return to all comments →
I'd imagine a node cannot be considered its own ancestor. So I would think that you would need to return the parent of A.
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 →
I'd imagine a node cannot be considered its own ancestor. So I would think that you would need to return the parent of A.