Two sum: Difference between revisions

Content added Content deleted
(+Stata)
mNo edit summary
Line 2:
 
;Task
Given a sorted array of single positive 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.