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.
O(2^n) 😥
Love simplicity and ease of using
||
for returning the first 'truthy' valuethis solution is recursive (see last lines)
Please, somebody, explain me, why code continue to execute after first condition that returns false. I thought keyword "return" stops the function
lucky you ;)
hello,
I don't understand why you solution is acceped if one of the RGB value is higher than 255?
Because 256 in hex is 3 characters (100), so your function will return more than 6 characters. Which should return an error.
Can you explain me?
How do you deal with ! or ?....
your function will return !ay and ?ay.