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.
And other corner cases, i added an off by one and still passed all tests.
The test cases were changed at one point, could that be why? A string output used to be accepted while a number could cause a failure. Now a number is expected.
Yeah, that threw me off, too. I ended up copying the test into jshint.com to see it. (This is a good trick for anyone struggling with hard-to-trace errors in their JS.)
This kata should just be a pretty simple exercise, without considering each edge case. A cake recipe in the real world doesn't contain ingredients, which you don't need ;)
I'm glad you didn't implement the Quantum Bogosort - I would be afraid to be in the wrong universe...
Haha. Nice.