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.
Ah--that was a typo. I sorted the coder's results within the test, but forgot to add it to that one specific test. Thanks.
I see it. That's a test that's specific to the JS version. It's not even applicable to some of the other languages. It would be simple to "correct", but it's not my code. It's the original author's, so I'll leave that call to him.
BTW, it's possible to solve this in JS w/out an explicit sort. ;-)
javascript - check my solution without the sort to get the error on the fourth test.
Which language? I haven't looked at all of them, but at least some don't enforce a ordering of the return values.
I had to sort my returning array because the test was not happy with [2, 1] instead of [1, 2]
No, it needs sample tests.
Is there a sample test case? My code failed the sample test case with unknown error but passed the actual tests. Really strange behaviour.
I had a brainfart while doing this excercise and instead of doing division I did a while loop over k checking each one if it matches. It would be good if one of the test k's would be so big that such approach would not get pass a test :)