Binary Search Tree : Lowest Common Ancestor

  • + 2 comments
                8
             /    \
            4       9
          /   \
        1       6
       / \
      3   2
    

    This is your tree. The answer code runs fine.