Concept Flow - Coin Change Total Number of Ways
Start with empty ways array
Set ways[0
For each coin
For each amount from coin to target
Update ways[amount
Repeat for all coins
Result is ways[target
We build an array where each position shows how many ways to make that amount. We start with 1 way to make 0. For each coin, we add ways to make amounts including that coin.