Merge pull request #752 from gb145234/work

修改leetcode题解动态规划01背包问题第五题
This commit is contained in:
CyC2018 2019-09-15 23:58:44 +08:00 committed by GitHub
commit d771c45199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -906,9 +906,6 @@ 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) {
return 0;
}
int[] dp = new int[amount + 1];
dp[0] = 1;
for (int coin : coins) {