/Array_Target_Sum_Pair

Take as input N, the size of array. Take N more inputs and store that in an array. Take as input “target”, a number. Write a function which prints all pairs of numbers which sum to target. Constraints: Length of the arrays should be between 1 and 1000. Sample Input: 5 1 3 4 2 5 5 Sample Output: 1 and 4 2 and 3 Explanation: Find any pair of elements in the array which has sum equal to target element and print them.

Primary LanguageC++

Stargazers

No one’s star this repository yet.