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 admit, some times this code was not passing the random tests... but then it passed 🤷♂️
Applying rank 8 => incProgress(rank = 8),
"After applying rank of 8 expected:<0> but was:<1>" is about progress being 1, not rank
So I challenge you to do not repeat the logic. I mean, write
if else
only once.I have this problem too
Indeed. Right now I am stuck at that very place. My algo works, just times out at the big one. I guess I'm at linear efficiency and need to get to log...
nice use of iterations, that's sweet
This is the result when i run it on my local machine:
3 [0, 1, 1, 2, 3, 5, 8, 13]
It returnsfib(4)
correctly as3
for the task at hand but when I take this code to the code wars console it only returnsNone
. The6
terminates the fib series at depth6
plus two, as seen in the array append, i.e.[8, 13]
, appreciate your speedy response to the issue I am facing...this
Testing fib(-1239370)
is toughthat's so fucking clever, you ever needed to implement anything
hardcore
exactly
That's the definition of "clever"
This comment is hidden because it contains spoiler information about the solution
I later found it out. Thanks anyway
I had the same issue, it wants progress to be 0, not the rank.
Loading more items...