File tree 2 files changed +2
-2
lines changed
java1/algorithms/array/twoSum2
javascript/algorithms/array/2.twoSum2
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ This problem is solved with the help of two pointer technique. The algorithmic a
19
19
20
20
4 . If the total is greater than target, decrement the right pointer to decrease the total value as per given target.
21
21
22
- 5 . If the total is less than target, increment the right pointer to increase the total value as per given target.
22
+ 5 . If the total is less than target, increment the left pointer to increase the total value as per given target.
23
23
24
24
6 . Repeat 2-5 steps until the two numbers sum is equal to the target.
25
25
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ This problem is solved with the help of **two pointers** technique. The algorith
19
19
20
20
4 . If the total is greater than target, decrement the right pointer to decrease the total value as per given target.
21
21
22
- 5 . If the total is less than target, increment the right pointer to increase the total value as per given target.
22
+ 5 . If the total is less than target, increment the left pointer to increase the total value as per given target.
23
23
24
24
6 . Repeat 2-5 steps until the two numbers sum is equal to the target.
25
25
You can’t perform that action at this time.
0 commit comments