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 pricingReach a target with each number used at most once, from a list that has duplicates.
What this asks
Reach a target with each number used at most once, from a list that has duplicates.
Sort first, recurse at i + 1, and skip duplicate siblings at the same level.
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