Mental Model
We try all possible groups of numbers that add up to a target sum by exploring choices step-by-step and backtracking when needed.
Analogy: Imagine picking fruits from a basket to make a fruit salad that weighs exactly K grams. You try adding one fruit at a time, and if the total weight goes over K, you remove the last fruit and try a different one.
Candidates: [2, 3, 6, 7] Target sum K: 7 Start: [] (empty combination) Try adding 2: [2] Try adding 2 again: [2 -> 2] Try adding 3: [2 -> 2 -> 3] If sum > 7, remove last and try next candidate Final combinations: [7] [2 -> 2 -> 3]
