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.
Kotlin translation: https://www.codewars.com/kumite/5c12419c8a2d874c9c00006e?sel=5c12419c8a2d874c9c00006e
This comment is hidden because it contains spoiler information about the solution
Kotlin : The sample tests expect 6 digit hex values but the random tests are expecting 5. A RGB hex needs 6 digits to be valid. This error is only occuring when the value is between 10 and 16, e.g. it will expect 'F' instead of '0F'.
A hack is to put an additional check but it should be this way.