1
Reply

Write an algorithm to find a pair of 2 elements to sum defined (user input) Eg Input array [1,2,3,6,8,1,6] and Sum = 5 so Expected output = [2,3] Explanation: only 2 and 3 forms a pair to sum = 5 in the given array.The answer should be generic for any array and sum input

Aashish Kumar

Aashish Kumar

Jan 06, 2018
158
0