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.
wow your solution is better than mine
practice more
Actually nope, as here there's a remainder operator used, and not the division one.
So, if a number is even, its remainder divided by two is zero, thus it should go to the "else"(after : here) part.
very nice solution! I want to be able to do the same
the best way to do it
I'm only about 5 years late here, but I think it's great. You walked through the examples in a clear fashion and
that helped me understand what I needed to do! Had a lot of fun solving this one.
Retired.
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/145.
Please join the discussion to help us identify duplicate kata and retire them.
With recursion my code looks very uggly.
Sorry for that, I didn't know! Thanks.
Always use the spoiler flag when discussing solutions. I have added the flag to your comment.
This comment is hidden because it contains spoiler information about the solution
I've done 5 kyus that are way easier than this!
Still a great Kata though. Thank you for the challenge
clever solution!
I feel this question worth more than 6kyu
Loading more items...