Skip to content

Commit 12bc134

Browse files
author
Shuai
committed
test
1 parent 253bddc commit 12bc134

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

problems/0039.组合总和.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ class Solution:
311311

312312
for i in range(startIndex, len(candidates)):
313313
if total + candidates[i] > target:
314-
continue
314+
break
315315
total += candidates[i]
316316
path.append(candidates[i])
317317
self.backtracking(candidates, target, total, i, path, result)
@@ -664,4 +664,3 @@ public class Solution
664664
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
665665
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
666666
</a>
667-

0 commit comments

Comments
 (0)