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 pricingList every subsequence of a string by taking or skipping each character.
What this asks
List every subsequence of a string by taking or skipping each character.
One call per character that either appends it or skips it, recording at each leaf.
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