Talk:Weird numbers: Difference between revisions

Content added Content deleted
(→‎A faster and less ambitious algorithm ?: (changed an example, to show a sum of more than 2 parts))
Line 45: Line 45:




print(anySum(7, [1,1,1,1,1,6]))
print(anySum(7, [1, 1, 1, 1, 1, 3]))
# -> [1, 6]
# -> [1, 1, 1, 1, 3]
print(anySum(7, [6, 3]))
print(anySum(7, [6, 3]))
# -> []</lang>
# -> []</lang>