Skip to content

Commit d771c45

Browse files
authored
Merge pull request CyC2018#752 from gb145234/work
修改leetcode题解动态规划01背包问题第五题
2 parents d6b1948 + aa0bb2f commit d771c45

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

docs/notes/Leetcode 题解 - 动态规划.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,9 +906,6 @@ Explanation: there are four ways to make up the amount:
906906

907907
```java
908908
public int change(int amount, int[] coins) {
909-
if (amount == 0 || coins == null || coins.length == 0) {
910-
return 0;
911-
}
912909
int[] dp = new int[amount + 1];
913910
dp[0] = 1;
914911
for (int coin : coins) {

0 commit comments

Comments
 (0)