Given an infinite supply of coins of different denominations and a total amount of money, write a
Fantastic news! We've Found the answer you've been seeking!
Question:
- Given an infinite supply of coins of different denominations and a total amount of money, write a function to compute the fewest number of coins needed to make up that amount. If it’s not possible to make up that amount, return -1. Implement this in a language of java dynamic programming for efficiency.
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Posted Date: