Binary Search Tree : Lowest Common Ancestor

  • + 2 comments

    it's not really an improvement, lca is done with the assumption v1 < v2; which would be done before calling lca: as is with all test cases for this problem.