Tree
235. Lowest Common Ancestor of a Binary Search Tree
Find the lowest common ancestor of two nodes in a binary search tree. The BST-ness is the whole gift here — you don't have to search the tree at all, you just have to walk down it in the right…
Loading…