...

/

Challenge: Number of Ways to Represent N Dollars

Challenge: Number of Ways to Represent N Dollars

In this lesson you will write an algorithm to solve a famous dynamic programming problem, finding the number of ways to represent an amount using bills and coins.

Problem statement

Given a list of currency bills, you are required to count the number of ways in which you can represent a certain amount. For example, if you have only two kinds of bills, $10 and $20, and you want to represent $30, there are only two ways:

  • 3 bills of
...