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.
also, its funny and to flex =)
This comment is hidden because it contains spoiler information about the solution
The version of Python which caused this error is not available anymore.
Don't see why would we...
To practice and improve your skills!
Why would you want a one-liner for this problem, or indeed for any other problem?
i did it without em, you would only need them if you wanted to go to the next one and were stuck in a loop no ?
hey could you please explain how your recursive function returns number of years? Does it add 1 on each recursion and then adds them up?
I don't agree, it is indeed a reasonable approach, and the code is perfectly readable as well.
No offence, but if you think what he wrote is unreadable, I wonder how you are 3 kyu.
Your code was supposed to fail for that input. Test removed due to being not needed anymore.
Name corrected. Thanks.
generated by my fingers :)
This comment is hidden because it contains spoiler information about the solution
That would needlessly materialize the comprehension into a list in-memory - the generator expression is more memory friendly
Your solution is not efficient.
Loading more items...