Skip to content

Commit 535bbab

Browse files
author
lewis617
committed
Fux bug of NSum
1 parent 357bbc4 commit 535bbab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ArrayList/ArrayList.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ function ArrayList() {
142142
if (s === M) {
143143
results.push(result.concat([nums[l], nums[r]]));
144144
l++;
145+
r--;
145146
} else if (s < M) {
146147
l++;
147148
} else {

0 commit comments

Comments
 (0)