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.
Random tests were added.
You are welcome :)
Thank you for solving my Kata.
Hint: look at your first
if
statement.I run your code and.. yeah, it actually doesn't calculate complementary color for empty string.
Note that if input argument has length less than 6 then you should add a few zeros on begin:
""
->"000000"
"FFF"
->"000FFF"
Due to the programming practice it's not necessary, but at the moment of writing this Kata I decided to make it little more complicated :)
It seems that you've stucked on this test:
Note that if input argument has length less than 6 then you should add a few zeros on begin:
"" -> "000000"
"FFF" -> "000FFF"