Talk:Two sum: Difference between revisions
Content added Content deleted
Line 6: | Line 6: | ||
and the desired sum is odd. -- [[User:Hajo|Hajo]] ([[User talk:Hajo|talk]]) 13:53, 5 October 2016 (UTC) |
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 |
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 pairs of integers '''<pre>[(Int, 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. |
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. |
||