Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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?
18,-5,-36 => true
Expected: true, instead got: false
Can some approve this python translation?
Can someone approve this Python translation?
The author has been MIA.
Python translation
Please review and approve
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]
.You'll need more rank assessments and more satisfaction votes. It takes time - people don't always spend two clicks to indicate their opinion of a kata.
Can I get this kata approved?
Done! Added random tests as well
Working on it
If you need another example, why random tests are important, then look in my solution. :-)
If you need help for creating random tests, please ask! Here are many helpful people, who will give you advices and will help.
This solution results in the exact opposite though.. I tried [1,2,-3] which sums to 0 and it returned false. If any combination of 3 numbers present in an array, sums to 0 it should return true.
Needs random tests.