Binary Search Tree : Lowest Common Ancestor

  • + 1 comment

    Awesome, can you please explain why assigning it to root will work correctly but fails if used as node* only for test case 2?

    Thanks in advance!!