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.
I'm not sure why this is marked as incorrect, I just ran it through the new set of tests and it passes all of them.
Maybe it is an issue with how codewars handles updated test cases
I'm not sure why this is marked as incorrect, I just ran it through the new set of tests and it passes all of them.
Maybe it is an issue with how codewars handles updated test cases
I was having some troubles editing the test cases, I think they are working now though. To the few people who's solutions are now marked invalid with a change in test cases, the example test cases now reflect the actual ones much better.
The sorting function must be able to handle ranks above 10, which means a simple string sort will incorrectly end up with
['1', '10', '2'...]