You are viewing a single comment's thread. Return to all comments →
why do we traverse left when both v1 and v2 are greater than root? Should we not traverse left?
I am rusty with the concepts
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Binary Search Tree : Lowest Common Ancestor
You are viewing a single comment's thread. Return to all comments →
why do we traverse left when both v1 and v2 are greater than root? Should we not traverse left?
I am rusty with the concepts