Cody

# Problem 1997. Compute Fibonacci Number

Solution 807298

Submitted on 15 Jan 2016 by David Schafer
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))

fib = 0 1 f = 1 fib = 0 1 fib = 0 1 1 f = 1 fib = 0 1 fib = 0 1 1 fib = 0 1 1 2 fib = 0 1 1 2 3 fib = 0 1 1 2 3 5 f = 5 fib = 0 1 fib = 0 1 1 fib = 0 1 1 2 fib = 0 1 1 2 3 fib = 0 1 1 2 3 5 fib = 0 1 1 2 3 5 8 fib = 0 1 1 2 3 5 8 13 f = 13 fib = 0 1 fib = 0 1 1 fib = 0 1 1 2 fib = 0 1 1 2 3 fib = 0 1 1 2 3 5 fib = 0 1 1 2 3 5 8 fib = 0 1 1 2 3 5 8 13 fib = 0 1 1 2 3 5 8 13 21 fib = 0 1 1 2 3 5 8 13 21 34 fib = 0 1 1 2 3 5 8 13 21 34 55 fib = 0 1 1 2 3 5 8 13 21 34 55 89 fib = 0 1 1 2 3 5 8 13 21 34 55 89 144 fib = 0 1 1 2 3 5 8 13 21 34 55 89 144 233 f = 233 fib = 0 1 fib = 0 1 1 fib = 0 1 1 2 fib = 0 1 1 2 3 fib = 0 1 1 2 3 5 fib = 0 1 1 2 3 5 8 fib = 0 1 1 2 3 5 8 13 fib = 0 1 1 2 3 5 8 13 21 fib = 0 1 1 2 3 5 8 13 21 34 fib = 0 1 1 2 3 5 8 13 21 34 55 fib = 0 1 1 2 3 5 8 13 21 34 55 89 fib = 0 1 1 2 3 5 8 13 21 34 55 89 144 fib = 0 1 1 2 3 5 8 13 21 34 55 89 144 233 fib = 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 fib = 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 f = 610