Binary Search Tree : Lowest Common Ancestor

  • + 0 comments

    What about some edge cases? 1) What if v1 == v2? 2) What if v1 is an ancestor for v2? Would your solution work then?