auto commit
This commit is contained in:
@ -904,7 +904,7 @@ Explanation: there are four ways to make up the amount:
|
||||
|
||||
```java
|
||||
public int change(int amount, int[] coins) {
|
||||
if (amount == 0 || coins == null || coins.length == 0) {
|
||||
if (coins == null) {
|
||||
return 0;
|
||||
}
|
||||
int[] dp = new int[amount + 1];
|
||||
|
Reference in New Issue
Block a user