mishrasamiksha/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.


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.

Concept used : Basic sorting Technique

Language used : cpp

Project Statistics

Sourcerank 2
Repository Size 0 Bytes
Stars 0
Forks 0
Watchers 0
Open issues 0
Dependencies 0
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Samiksha Mishra

Something wrong with this page? Make a suggestion

Last synced: 2018-12-05 10:09:28 UTC

Login to resync this repository