What is the minimum number of US coins needed to make N cents? (use pennies, nickels, dimes, and quarters)
Can you think of a coin denomination for which your solution does not work?
Wikipedia page on the Change-making Problem
© 2012-2022 Christopher Su. All rights reserved.