Two sum: Difference between revisions

Content added Content deleted
mNo edit summary
Line 2: Line 2:


;Task
;Task
Given a sorted array of integers, is it possible to find a pair of integers from that array that sum up to a given sum? If so, return indices of the two integers or an empty array if not. The solution is not necessarily unique.
Given a sorted array of integers (with possible duplicates), is it possible to find a pair of integers from that array that sum up to a given sum? If so, return indices of the two integers or an empty array if not. The solution is not necessarily unique.