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 have to agree with dafuloth, the description is very difficult to understand and even after forfeiting to see the solution I don't understand the math behind.
Random tests were added.
This comment is hidden because it contains spoiler information about the solution
You are welcome :)
Thank you for solving my Kata.
Thanks got that ! Still stuck on the last test tho...
Hint: look at your first
if
statement.This comment is hidden because it contains spoiler information about the solution
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 :)
This comment is hidden because it contains spoiler information about the solution
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"
I am getting the following errors with my code but as they are truncated I cannot find my errors :
emptyStringEqualTo000000(HTMLComplementaryColorTest)
Unknown Test Failure
firstCharIsHashLengthEqualTo73(HTMLComplementaryColorTest)
Unknown Test Failure
incorrectStringType(HTMLComplementaryColorTest)
Unexpected exception, expected but was