Talk:Two sum: Difference between revisions

m
Thundergnat moved page Talk:Two Sum to Talk:Two sum: Follow normal task title capitalization policy
m (Thundergnat moved page Talk:Two Sum to Talk:Two sum: Follow normal task title capitalization policy)
 
(2 intermediate revisions by 2 users not shown)
Line 26:
 
:: Also, as for the use of non-integers, that isn't a problem for some languages, as not all floating point numbers are necessarily stored in binary, some programming languages can use   ''decimal''   floating point.   Other programming languages can also support scaled numbers, that is,   '''2.3'''   can be stored as an decimal integer, with the decimal point indicated to the appropriate location.   -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:01, 4 December 2017 (UTC)
== 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)
10,327

edits