mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-08 10:15:51 +08:00
Update TwoPointersAlgo.java
This commit is contained in:

committed by
GitHub

parent
4d301033b1
commit
0be35c67dc
@ -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)
|
||||
|
Reference in New Issue
Block a user