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.
javascript - check my solution without the sort to get the error on the fourth test.
I had to sort my returning array because the test was not happy with [2, 1] instead of [1, 2]
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 :)