Binary Search Tree : Lowest Common Ancestor

  • + 0 comments

    Hey, I've never actually used return in front of the recursive function call itself. Can you explain, what will the "return lca(root.left,v1,v2)" do exactly ?