Skip to content

Commit 0be35c6

Browse files
authored
Update TwoPointersAlgo.java
1 parent 4d30103 commit 0be35c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Others/TwoPointersAlgo.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import java.lang.*;
33
import java.io.*;
44

5+
//https://www.geeksforgeeks.org/two-pointers-technique/
6+
57
class TwoPointersAlgo {
68
//This function prints all pairs in the array that sum to a number X. If no such pair exists then output will be -1.
79
static void twoSum(int A[], int X)
@@ -70,4 +72,4 @@ public static void main (String[] args) {
7072
1 7 8
7173
2 6 8
7274
3 5 8
73-
*/
75+
*/

0 commit comments

Comments
 (0)