diff --git a/problems/0039.组合总和.md b/problems/0039.组合总和.md index 2a36ce5a..cdf33c58 100644 --- a/problems/0039.组合总和.md +++ b/problems/0039.组合总和.md @@ -311,7 +311,7 @@ class Solution: for i in range(startIndex, len(candidates)): if total + candidates[i] > target: - break + continue total += candidates[i] path.append(candidates[i]) self.backtracking(candidates, target, total, i, path, result)