Tree
236. Lowest Common Ancestor of a Binary Tree
Same LCA question as #235, but now the tree is an arbitrary binary tree — no ordering to exploit. Without values to steer by, you can't pick a direction, so you genuinely have to search both…
Loading…