This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingGiven a small tree and two marked nodes, choose their lowest common ancestor.
What this asks
Given a small tree and two marked nodes, choose their lowest common ancestor.
Climb from both targets toward the root: the first node the two climbs share is the answer, and it can sit far below the root.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing