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.
Re-raising Voile's issue closed by one very incompetent user. The task is a duplicate, and is solved not through bugfixing, but rewriting the code from scratch.
I think he was trying to make sense out of testing.
Fixed.
The example solution is
O(n log n)
whereO(n)
is perfectly possible, mutates its input and defines a spurious named constant.In short: WTF ?!?
In medium: These are not Best Practices.
In long: Bored now.
Duplicate.
Also, these kind of bugfix is neither actual bugfixes, or meaningful at all.
Some sample tests are wrong.
What are you testing there? The expected value there is true (a boolean) and note that you're comparing a string against an array, so returning anything that's not a booleans in the function, it'll pass.
More tests needed.