Binary Search Tree : Lowest Common Ancestor

  • + 0 comments

    My solution was straight forward. keep going down the tree till both values change paths. They will have new ancestors each time the go down the tree and same path. the moment they separate ways is when you return that node at which they separated