Merge pull request #456 from ravidesai47/master

Good Work!
This commit is contained in:
Christian Bender 2018-07-21 20:45:23 +02:00 committed by GitHub
commit 89b94a8f52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,9 +29,7 @@ public class CoinChange {
for (int coin : coins) {
for (int i=coin; i<amount+1; i++) {
if (i>=coin) {
combinations[i] += combinations[i-coin];
}
}
// Uncomment the below line to see the state of combinations for each coin
// printAmount(combinations);