Talk:Two sum

From Rosetta Code
Revision as of 22:21, 4 October 2016 by Thundergnat (talk | contribs) (Some ambiguities)

Eh? Are we quite sure this is stated correctly?

Because numbers[1] + numbers[3] = 2 + 19 = 21, return [0, 3]

Shoudn't that be return [1,3] ?


Some ambiguities

What if there is more then one way to get the desired sum? Should it return all of the pairs or only a pair? Are we to assume the integers in the array are unique? --Thundergnat (talk) 22:21, 4 October 2016 (UTC)