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.
i suppose code that isn't best practice is often marked as clever here
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Can u explain this more indeep?
ight bro
@kristynagel72 It does not return 0 because he adds 1 to the recursive call every time.
Why shouldn't we alter the function definition if it makes sense?
Their solution is much more readable than yours thanks to default arguments.
Why does it not return 0 everytime, then?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Enabled, so closing.
Could you please tell why the absence of Python 3.6.0 version is an issue?
Ah... It seems you forgot some xrange somewhere... (see above)
I'll update that.
EDIT: sample tests. ;)
Fixed