Mental Model
Find the smallest number of coins needed to make a target amount using given coin values. We build up solutions from smaller amounts to the target.
Analogy: Imagine you want to pay a certain amount using coins from your wallet. You try to use the fewest coins possible by checking all smaller amounts first, like climbing stairs one step at a time.
coins: [1, 3, 4] amount: 6 DP array indices: 0 1 2 3 4 5 6 DP values: 0 ∞ ∞ ∞ ∞ ∞ ∞ (∞ means not yet computed)