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.
There can be some confusion between different authors, whether to include/index the 0 term in the Fibonacci sequence (whether fib(0) = 1 or fib(0) = 0). See this stackoverflow post for example
117669030460994
is therefore either fib(69) or fib(70) - if your code can produce this number, all you need to do therefore is change the indexing by one (for example, if given inputn
use your code to calculatefib(n-1)
) as this kata uses: fib(0) = 0, fib(1) = 1, fib(2) = 1, fib(3) = 2 etc.