Cody

Problem 1997. Compute Fibonacci Number

Solution 1864719

Submitted on 3 Jul 2019 by Altantsooj B
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal(fibonacci(1),1)) assert(isequal(fibonacci(2),1)) assert(isequal(fibonacci(5),5)) assert(isequal(fibonacci(7),13)) assert(isequal(fibonacci(13),233)) assert(isequal(fibonacci(15),610))

f = 1 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 34 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 34 f = 55 f = 89 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 34 f = 55 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 34 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 34 f = 55 f = 89 f = 144 f = 233 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 34 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 34 f = 55 f = 89 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 34 f = 55 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 13 f = 21 f = 34 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 8 f = 1 f = 2 f = 1 f = 1 f = 2 f = 3 f = 5 f = 1 f = 1 f = 2 f = 3 f = 1 f = 2 f = ...