Talk:Two sum: Difference between revisions

No edit summary
Line 28:
== 11 + 11 = 22 ==
In the given example do 11 + 11 constitute a pair of integers? Is [0,2,11,11,90] a valid sorted array?--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 16:00, 5 December 2017 (UTC)
:I updated the task to explicitly allow this. It's not a problem, at least with the O(n) algorithm given in the SO source. [[User:Eoraptor|Eoraptor]] ([[User talk:Eoraptor|talk]]) 17:47, 5 December 2017 (UTC)
1,336

edits