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 pricingFind the shortest drop from the root down to a leaf.
What this asks
Find the shortest drop from the root down to a leaf.
Depth-first with a guard: a node with one child is not a leaf, so a missing side is skipped rather than counted as depth zero; level order with level sizes is the counterpart.
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