Skip to content

Commit 656c875

Browse files
committed
Merge branch 'master' of https://github.com/CyC2018/CS-Notes
2 parents 366b48d + d771c45 commit 656c875

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
@@ -902,9 +902,6 @@ Explanation: there are four ways to make up the amount:
902902

903903
```java
904904
public int change(int amount, int[] coins) {
905-
if (amount == 0 || coins == null || coins.length == 0) {
906-
return 0;
907-
}
908905
int[] dp = new int[amount + 1];
909906
dp[0] = 1;
910907
for (int coin : coins) {

0 commit comments

Comments
 (0)