New answers tagged

0 votes

Coin Change in Java

Consider testability It's nice to have an easy way to test a program with various inputs, in this example: with coins in reverse order, with coins that are relative primes such as [2, 5] With the ...
user avatar
  • 108k
2 votes
Accepted

Coin Change in Java

First, and most importantly, this program, as currently written, fails for some inputs where it shouldn't. For example, it can't make change for a value of 11 when using coins of values 2 and 5, even ...
user avatar
  • 2,827

Top 50 recent answers are included