package Misc;
import java.util.*;
import java.util.stream.Collectors;
public class TwoSumProblem {
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