instagram

The Coin Change Problem

How many different ways can you make change for an amount, given a list of coins?

Example :
You have to make total 4 using combination of below three coins
1, 2, and 3

Here are four combinations you can make
1111
112
13
22

Lets see example :

Share