Skip to content

Commit 00f7656

Browse files
refactor 322
1 parent 9da0f38 commit 00f7656

File tree

1 file changed

+0
-18
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-18
lines changed

src/main/java/com/fishercoder/solutions/_322.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,6 @@
22

33
import java.util.Arrays;
44

5-
/**
6-
* 322. Coin Change
7-
*
8-
* You are given coins of different denominations and a total amount of money amount.
9-
* Write a function to compute the fewest number of coins that you need to make up that amount.
10-
* If that amount of money cannot be made up by any combination of the coins, return -1.
11-
12-
Example 1:
13-
coins = [1, 2, 5], amount = 11
14-
return 3 (11 = 5 + 5 + 1)
15-
16-
Example 2:
17-
coins = [2], amount = 3
18-
return -1.
19-
20-
Note:
21-
You may assume that you have an infinite number of each kind of coin.
22-
*/
235
public class _322 {
246

257
public static class Solution1 {

0 commit comments

Comments
 (0)