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.
yep, that's a first!
i dont see how an ad blocker could possibly interfere with the variables, the code is evaluated server side, not client side
you didn't read the description...
I dont get it: How is it possible to palindromize 750? reversed is 057.
I didn't check it's actually the case but I think there may be an overflow issue in JS: the maximum value tested is fib(69), which is greater than Number.MAX_SAFE_INTEGER.
There is an issue with the random tests in javascript. I am getting "expected 5 to equal 4" last I checked 4 is not a number in the fibonacci sequence.
first cite means we got a previous values
second cite means it is still advisable to use recursion, but why?
Solvers reading about memoisation are going to get spoilers. It's not feasible to prevent that. What are they going to do, not read up on memoisation? Closing.
Kata is very nice, but there is one problem -- sudden spoiler.
When I tried to read about memoization in Haskell I found the exact solution to this kata as an example (in afterthought, it was quite obvious). Comment on that in description would be nice, so others won't spoil their fun accidentaly.
cache
is recreated again every time your function is called, that won't work. Google how memoization is done.A simple recursive solution won't work, a recursive solution that uses memoized data will work, and that's what the kata is about.
Your solution doesn't work because it's too slow when called several times in a row, it always calculates all Fibonacci numbers until the nth one.
Recursion don't fit for this kata.
I would to know why my code does not finish while function gives correct results.
Where is the recursion or the memoization? Google to know what those are if you don't know.
This comment is hidden because it contains spoiler information about the solution
I still don't understand decorators in Python. Help me pls :(
Loading more items...