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 balanced bracket string of n pairs.
What this asks
Print every balanced bracket string of n pairs.
Choose open while opens remain and close while closes trail opens; recurse and undo each 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