We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9da0f38 commit 00f7656Copy full SHA for 00f7656
src/main/java/com/fishercoder/solutions/_322.java
@@ -2,24 +2,6 @@
2
3
import java.util.Arrays;
4
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
- */
23
public class _322 {
24
25
public static class Solution1 {
0 commit comments