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 pricingGenerate permutations and subsets of a collection from the same recursive template.
What this asks
Generate permutations and subsets of a collection from the same recursive template.
Subsets take or skip each item and record the path at every call; permutations pick any unused value with a used flag that flips back after the recursion.
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