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.
too long :)
With 31K++ completions, it's not broken after 4 years
global flag is redundant
I think this is a very clear solution. Good job!
Yes. And also putting in random tests.
But it already has 500+ solves so the tests are locked, and nothing can be done about it.
ah, so the test case should be rewritten really?
It works for me. What version are you using? Maybe something changed in the test suite?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Seems like JavaScript tests are broken. All of them are passing undefined.
I do not get how did you pass the test because the same code I had hadn't worked with negative numbers?
smart!