auto commit

This commit is contained in:
CyC2018
2019-10-17 02:31:10 +08:00
parent 34e366590f
commit 85013cc7af
2 changed files with 25 additions and 13 deletions

View File

@ -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];