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.
This is genious for me.
This comment is hidden because it contains spoiler information about the solution
Nice work! I didn't think to just have the while loop go as long as the digit is greater than 9. That's a good way to have it stop when you've reached a single digit sum. I also like how you just used n for everything. I made some new variables that I now realize weren't needed.
can you explain it to me? I'm quite confused by this solution.
Cleanest solution.
Yo no me hubiera imaginado hacerlo así :v
Simplemente genial!
Was hard for me to understand how it works, but eventually i did!
This comment is hidden because it contains spoiler information about the solution
Then it will return
mocha_missing
, as per the specification.What if n is 2 or 4?
Error message "Error" isn't very helpful to the consumer of this class.
It is definitely NOT intended to choose a color randomly with any invocation of getColor().