From 0be35c67dc7c40c6e920f6d76e8df4736fb9364b Mon Sep 17 00:00:00 2001 From: Varun Vaibhav Jha <60656060+varunvjha@users.noreply.github.com> Date: Thu, 17 Sep 2020 11:07:43 +0530 Subject: [PATCH] Update TwoPointersAlgo.java --- Others/TwoPointersAlgo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Others/TwoPointersAlgo.java b/Others/TwoPointersAlgo.java index 31e2b367c..903c9d79c 100644 --- a/Others/TwoPointersAlgo.java +++ b/Others/TwoPointersAlgo.java @@ -2,6 +2,8 @@ import java.util.*; import java.lang.*; import java.io.*; +//https://www.geeksforgeeks.org/two-pointers-technique/ + class TwoPointersAlgo { //This function prints all pairs in the array that sum to a number X. If no such pair exists then output will be -1. static void twoSum(int A[], int X) @@ -70,4 +72,4 @@ Output: 1 7 8 2 6 8 3 5 8 -*/ \ No newline at end of file +*/