...whether any combination of 3 numbers sum to 0.
You are allowed to use a number more than once, as long as you use only 3 numbers total (e.g. 0+0+1 ).
0 + 0 + 1 is 1, not 0.
0 + 0 + 1
Can someone approve this Python translation?
The author has been MIA.
0+0+1
There are no solid checks on this requirement; the only case that kinda tests for it [0], which is trivial and really can't catch it.
[0]
Please add test cases like [1,3,6,10,15,-12].
[1,3,6,10,15,-12]
Loading collection data...
0 + 0 + 1
is 1, not 0.Can someone approve this Python translation?
The author has been MIA.
There are no solid checks on this requirement; the only case that kinda tests for it
[0]
, which is trivial and really can't catch it.Please add test cases like
[1,3,6,10,15,-12]
.