You are viewing a single comment's thread. Return to all comments →
This problem uses an incorrect definition of fibonacci unfortunatly. For this problem fib(1) != 1, instead fib(1) == 0;
I think you solution is correct for standard fibonacci.
Seems like cookies are disabled on this browser, please enable them to open this website
Fibonacci Numbers
You are viewing a single comment's thread. Return to all comments →
This problem uses an incorrect definition of fibonacci unfortunatly. For this problem fib(1) != 1, instead fib(1) == 0;
I think you solution is correct for standard fibonacci.