Binary Search Tree : Lowest Common Ancestor

  • + 1 comment

    I solved this problem. But if its authors read this forum, I would like to point out that I wish the probem was defined more rigorously. It is ambiguous what if there are many equal elements, e.g.

    4 4 5

    v1=4, v2=4, ans - ?