WAP to find a pair in a sorted array such that the sum of pair is equal to the given number.
Example:
Input:
A= {2,6,10,13,15,19,20,30,40}
N=29
Output={10,19}
10+19=29
Published By : Kopal Jaiswal
WAP to find a pair in a sorted array such that the sum of pair is equal to the given number.
Example:
Input:
A= {2,6,10,13,15,19,20,30,40}
N=29
Output={10,19}
10+19=29