Talk:Two sum: Difference between revisions

(→‎Some ambiguities: The proposed return type is not quite right yet)
Line 6:
and the desired sum is odd. -- [[User:Hajo|Hajo]] ([[User talk:Hajo|talk]]) 13:53, 5 October 2016 (UTC)
 
One way of putting it is that the proposed return type (list of integers '''[Int]''') is not quite right yet. The structure of the problem would be more clearly expressed by requiring the return of a list of lists of integers '''<pre>[[Int]]</pre>'''.
i.e. Returning an empty list where no solutions are found, and a list of more than one integer pair where multiple solutions are found.
 
9,655

edits