Mental Model
We want to find how many different ways we can make a total amount using given coin values, counting all combinations.
Analogy: Imagine you have different types of candies and want to fill a bag with a certain number of candies. You want to know all the ways to pick candies so the total matches exactly.
coins: [1, 2, 3] amount: 4 Ways table (rows: coins, columns: amounts): 0 1 2 3 4 1 1 ? ? ? ? 2 1 ? ? ? ? 3 1 ? ? ? ? '1' means there is exactly 1 way to make amount 0 (use no coins).
