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.
Nice coding challenge of the Fibonacci series by the way.
Don't see any point in using "math/big", as int64 can hadle all test cases for n <= 600.
Btw,
int(times) if times else 1
can be reduced to
int(times or 1)
I feel like this is the epitome of python programming - extremely consise but unreadable, however demonstrates elite levels of knowledge in the language. Beautiful solution.
Approved
python new test framework is required. updated in this fork
This is so clever but I'm not even going to begin trying to understand what's going on here :p
Can't complete the solution with more than 10 lines of code, the code always times out :(
Perfect iterators!
I think four conditions should cover everything.
In order not to miss anything, shouldn't the exceptions be caught around each condition separately?
Very similar to https://www.codewars.com/kata/56b7771481290cc283000f28
has been updated some time ago.
Very well! :)
This comment is hidden because it contains spoiler information about the solution
Edited.
The following statement is a little misleading
I suggest :
Loading more items...