Concept Flow - Coin Change Total Number of Ways
Start with empty ways array
For each coin
For each amount from coin to target
Update ways[amount
Repeat for all coins
Result: ways[target
We start with an array representing ways to make each amount. For each coin, we update this array by adding ways to make amounts that include this coin. Finally, the target amount's value is the total ways.
