Skip to content

Commit accded4

Browse files
refactor 39
1 parent 176e378 commit accded4

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+1
-1
lines changed

src/main/java/com/fishercoder/solutions/_39.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void backtracking(int[] candidates, int target, int start, List<Integer> curr, L
1818
if (target > 0) {
1919
for (int i = start; i < candidates.length; i++) {
2020
if (candidates[i] > target) {
21-
continue;//pruning
21+
break;//pruning
2222
}
2323
curr.add(candidates[i]);
2424
backtracking(candidates, target - candidates[i], i, curr, result);

0 commit comments

Comments
 (0)