First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. George Carrette
Coin Change is the problem of finding the number of ways of making changes for a particular amount of cents, n, using a given set of denominations d1,… dn.
General coin change that keeps track of coins: [5, 5]