You are viewing a single comment's thread. Return to all comments →
I agree. Especially considering that this is clearly tail-recursive (which makes it trivial to convert to an iterative solution).
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 →
I agree. Especially considering that this is clearly tail-recursive (which makes it trivial to convert to an iterative solution).