import java.util.*;
public class ThreeSumProblem {
public static void main(String args[])
{
Scanner scan = new Scanner(System.in);
System.out.print("Enter the target sum ");
int ts= scan.nextInt();
System.out.print("Enter the number of elements in the array ");
int n = scan.nextInt();
System.out.println("Enter all your array elements:");
int arr[]= new int[n];
for(int i=0;i> arr = new ArrayList
>();
for(int i=0;i
>(new LinkedHashSet
>(arr));
return arr;
}
public List
> TwoPointer(int[] nums, int target) {
Arrays.sort(nums);
List
> arr = new ArrayList
>();
int start=0;
int end=0;
int i = 0;
while(i
>(arr);
return new ArrayList
>(set);
}
public List
> Hashmap(int[] nums, int target) {
Arrays.sort(nums);
Set
> ts = new HashSet();
HashMap