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.
It could have been nice to create our own class Fighter, as I wanted to create a method Attack(Fighter defender) that would return true if the other died on that hit...
It's non sensical when it's not specified. ;)
I cannot edit the kata for now (7 days delay)
Doing something in place and returning it isnt that nonsensical, js does it with sort to support chaining. If you feel something isnt as perfect as you need it, change it, this is an old kata and Im not active on here anymore.
It's not tested, it's indeed just a hint.
Is that tested in javascript? Or is it just a suggestion/hint to avoid the timeout?
That returns a new array tho. It doesn't reverse it in place.
This comment is hidden because it contains spoiler information about the solution
If you failed one, then your code is wrong and it didn't pass all the random tests.
This comment is hidden because it contains spoiler information about the solution
Without more info there's nothing we can do.
My code runs successsfuly in my code editor my it ain't working here even the output is the in same order