Two sum: Difference between revisions
m
→{{header|Python}}
(→{{header|Python}}: Added a version expressing twoSum in terms of product) |
|||
Line 1,594:
print(two_sum(numbers, 25))</lang>
or, in terms of '''itertools.product''':
<lang python>from itertools import (product)
Line 1,608:
]
# TEST ----------------------------------------------------▼
▲# TEST ----------------------------------------------------
# main :: IO ()
|