Loading repovive.com/problems/classics/27
Given a sorted array of integers in non-decreasing order and a target sum , find two elements at different positions that add up to .
Output the two values in increasing order. If no such pair exists, output .
If multiple valid pairs exist, output the one with the smallest first value.
For this input, the required output is 2 7.
For this input, the required output is -1.
For this input, the required output is -5 5.