You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LeetcodeProblems/Coin_Change.js
+17-18
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@
2
2
Coin Change
3
3
https://leetcode.com/problems/coin-change/
4
4
5
-
You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the coins, return -1.
5
+
You are given coins of different denominations and a total amount of money amount.
6
+
Write a function to compute the fewest number of coins that you need to make up that amount.
7
+
If that amount of money cannot be made up by any combination of the coins, return -1.
6
8
7
9
Example 1:
8
10
@@ -18,19 +20,16 @@ You may assume that you have an infinite number of each kind of coin.
0 commit comments