BETA
Pairs with Sum = S

Given an array and a sum s find all pairs of numbers which whose sum = s ? 

space complexity-O(1),time complexity-O(n)

Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer