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.
the easiest one i ever done
Fun little kata!
this is not a proper issue report. specify the language, and give links to those solutions that should be invalidated (use the "Link" button under a solution to share it)
Opportunities are now on the dart
Translation Dart
omg xDDD, but i guess if this is the case, then it should be something like 8 kyu?
this kata doesnt work. ive seen that some solution are a cycle that sees if the value in arr is bigger the arr.size()-1, and they work, even the tests.
Lua translation!
Python does not test this case at all
resolved for all languages
resolved for all languages (+ resolved the problem with pseudo-random tests as well)
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, actuallyWhat shoud be the answer for [-1, -1, -1, -2, 1, 2, 2]?
It sums to 0 and each element has a corresponding negative element, but not the same amount/
Rejected:
No random tests
Missing
describe -> it
block structureUsing old framework (
mocha
+chai
should be used with Node 18. enabled)const
should be used to declare variables in preloadedKindly read the translating guidelines before publishing more translations ^^
Loading more items...