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.
The function is pure but the cache is not singleton, each time fibunacci(n) is called, all cached values are computed again
This is not what the kata asks to do, but works because fibunacci has a general formula
Not a suggestion
This comment is hidden because it contains spoiler information about the solution
I can't submit my answer although it says all test cases passes...
--- Edit: found out why.
It would be nice to add Typescript to this kata using generic types!
This comment is hidden because it contains spoiler information about the solution