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 pricingPrint every binary string of length n, one decision per position.
What this asks
Print every binary string of length n, one decision per position.
Choose 0 or 1 at each level, recurse, and undo before the next choice.
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