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 count all the ways to combine the candies to reach that number.
coins: [1, 2, 3] amount: 4 Ways table (rows: coins, columns: amounts): amt: 0 1 2 3 4 coin1: 1 1 1 1 1 coin2: 1 1 2 2 3 coin3: 1 1 2 3 4
