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.
Hi - I just answered @eshis comment (Python) below, the exact same situation applies to your current solution: see here for link:
https://www.codewars.com/kata/54521e9ec8e60bc4de000d6c/discuss#6352c8ee075de318127725cc
Furthermore, to explain an additional point you make: You aren't failing "the last random test", what happens is that Codewars is running the random tests for up to 12 seconds and then times out. You will only see the last random test that you passed before timing out (there are in fact ~20 more after).