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...
Why would you want a one-liner
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 :)
That would needlessly materialize the comprehension into a list in-memory - the generator expression is more memory friendly
Your solution is not efficient.
Loading collection data...
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...