Tuesday, July 30, 2013

How to retrieve distinct pair of values from the given list of integers where the sum of each pair equals to given input value.

How to retrieve distinct pair of values from the given list of integers where the sum of each pair equals to given input value.


Example

Input : 9,2,5,4,6,-9
Output : 9,2 & 5,6



No comments:

Post a Comment