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.
Probably need
return fib(n,arrayer,indexer)
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...looks like you need to work out the difference between printing and returning a result (or something along that line): your function returns only if n is 6.
This comment is hidden because it contains spoiler information about the solution