+ 3
Giving change
if you have coins [1,2] and you need to guve money=3 you can do it in two different ways :1+1+1 or 1+2 Given a list of coins=[x1,x2...,xn] and a number money=X program a function returning the number of different ways to give change on X using coins Test : 10 [5,3,2] : 4 11[5,7] : 0
2 Answers