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 pricingCompute each subtree's answer, then push the parent's answer down so every node can stand in as the root.
What this asks
Answer a subtree question for every node, not just the root.
One pass collects each subtree's answer; a second pass pushes the parent's answer down, undoing the child's own contribution, so every node becomes the root in turn.
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