Your code fails for blue or BlUe because you are checking the length first before the code logic flow enters the else statement, and obviously multiplying a string (l) with an integer is invalid.
I think it would help if there was a reference of RGB colors or its hexadecimal system on the instructions... It would be less confuse to someone who is not familiarized with that. But other than that, great kata!!
Be careful when sorting by raw names. "ABE" would sort before "Aaron", which is incorrect.
Approved by someone
Go Translation
We need a clear explanation of how to do this. “preset Colors” it’s not clear how and what to do with it. C#
Approved
python new test framework is required. updated in this fork
Your code fails for
blue
orBlUe
because you are checking the length first before the code logic flow enters theelse
statement, and obviously multiplying a string (l
) with an integer is invalid.It is a pre-defined hashmap in preloaded section, here's how you can use it!
I think it would help if there was a reference of RGB colors or its hexadecimal system on the instructions... It would be less confuse to someone who is not familiarized with that. But other than that, great kata!!
I think this is the best solution, since everything is done here in one loop. Genius!
This comment is hidden because it contains spoiler information about the solution
JS Node 18. should be enabled
Ruby 3.0 should be enabled
Description should be language-agnostic
This comment is hidden because it contains spoiler information about the solution
wow.. amazing challenge.. really enjoyed this one !
Loading more items...