I am failing 2-5 test cases for which my solution returns the correct value on my machine and on REPLIT. I printed the return value and the log on these says false, but the result is 'expect: false, got: true'. I don't understand, why my solution always returns the correct value according to the log but a few are counted as incorrect?
0 + 0 + 1
is 1, not 0.I am failing 2-5 test cases for which my solution returns the correct value on my machine and on REPLIT. I printed the return value and the log on these says false, but the result is 'expect: false, got: true'. I don't understand, why my solution always returns the correct value according to the log but a few are counted as incorrect?
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]
.