Mental Model
We want to find how many different ways we can make a total amount using given coin values, counting all combinations without caring about order.
Analogy: Imagine you have different types of candies and want to fill a jar with a certain number of candies. You want to know in how many ways you can fill the jar using any number of each candy type.
coins = [1, 2, 3] amount = 4 Ways array (index = amount): [1, 0, 0, 0, 0] ā Initially, 1 way to make 0 amount (use no coins).
