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.
Python does not test this case at all
Yeah, it should be, so that would be better fitting to its name.
Made a fix with adding such details to description, seems like to be explained enough.
Well, it says
each element has its own negative
so I don't think you could use that 1 for all those -1, each one should have its own. I'd say your function should returnfalse
with that input.Either way, if the behaviour is not clear from the instructions and examples, it should be properly explained. The reference solution in javascript compares the amount btw.
true
, since the original description has no mentions about the same amount, actuallyThis comment is hidden because it contains spoiler information about the solution
It's a lose condition anyways, so you might as well bail out early.