Skip to content

Commit ee319ce

Browse files
committed
reduce unnecessary condition
1 parent 298d86e commit ee319ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/LeetCode/src/backtracking/CombinationSumIII.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private void dfs(List<List<Integer>> resultList, List<Integer> list, int k, int
2828
resultList.add(new ArrayList<Integer>(list));
2929
return;
3030
}
31-
if (sum < 0 || start > 9) {
31+
if (sum < 0) {
3232
return;
3333
}
3434
for (int i = start; i <= 9; i++) {

0 commit comments

Comments
 (0)