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 pricingThree states per node (covered, camera, uncovered) combined upward to cover the tree with the fewest cameras.
What this asks
Cover every node with the fewest cameras, where a camera watches its parent, itself and its children.
Each call returns one of three states (has a camera, covered, needs cover); the parent resolves its own state from both children.
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