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.
A sort of classic, nice.
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.
This comment is hidden because it contains spoiler information about the solution
You should complete that in order to accept arguments like shown in the example.
There are no incoming arguments. How to write a function?
I'd vote boosting the tests. And it can be solved with recursion, can't it? Not the only way tho.
Time to remove the
recursion
tag, and rerank? And / or to boost the tests and have more than a single level of nesting?Now it does.
Ranks can't be changed!
Great kata! Second what others have said, this is not a 7 kyu.
I think this should be level 6 or 5, I guess 5 if you decide to enforce time complexity
I like this kata.
Thanks! I'm planning on making another one soon :)
It was crazy cool game...I finally defeated all the Bosses! :D
Thanks, I'm glad you enjoyed it!
Loading more items...