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.
Sorry, I thought it would be visible only to those who have already completed the kata. Will flag properly in the future!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
That depends on the design goals of the _if function. If the design goal is clarity and constraint to only work with procedures, then the _if function is fine. But if the design goal is flexibility and versatility, then your statement is correct.
Clean but not subtle
Bravo, beautiful solution. I'm sad I didn't see recursion as a way. Thinking back I really should have, I could see I wanted to do the same thing over and over until a base case of sorts.
cool
This is a Python 2 solution where / is integer division.
This comment is hidden because it contains spoiler information about the solution
Missing int in the return statement, won't pass tests without it.
that means if x!= 0 return x+zeros(x) else return 0
this is wrong, zeros(100)=24 not 25
Awesome
doesnt work if n >= 5^10001 :^)
doesnt work if n >= 5^10001 :^)
Loading more items...