Skip to content

Commit 3876a86

Browse files
refactor 15
1 parent fb1e1e8 commit 3876a86

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public List<List<Integer>> threeSum(int[] nums) {
2929
while (left < right && nums[right] == nums[right - 1]) {
3030
right--;
3131
}
32+
//these two lines are critical and easy to forget, if so, it'll TLE
3233
left++;
3334
right--;
3435
} else if (sum > 0) {

0 commit comments

Comments
 (0)