Skip to content

Commit 43e9ebc

Browse files
committed
Added 2 Base tests and 5 main tests for CoinChange Problem. Refactored the code and removed the Memoized approach as it was not necessary
1 parent fa15244 commit 43e9ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dynamic-Programming/CoinChange.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const change = (coins, amount) => {
1515
}
1616
return combinations[amount]
1717
}
18-
function minimumCoins(coins, amount) {
18+
function minimumCoins (coins, amount) {
1919
// minimumCoins[i] will store the minimum coins needed for amount i
2020
const minimumCoins = new Array(amount + 1).fill(0)
2121

0 commit comments

Comments
 (0)