Cody

Solution 565672

Submitted on 26 Jan 2015 by SmileyPhysics
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
%% n = 1; f = 1; assert(isequal(fib(n),f))

2   Pass
%% n = 6; f = 8; assert(isequal(fib(n),f))

h = 1 h = 1 h = 2 h = 3 h = 5

3   Pass
%% n = 10; f = 55; assert(isequal(fib(n),f))

h = 1 h = 1 h = 2 h = 3 h = 5 h = 8 h = 13 h = 21 h = 34

4   Pass
%% n = 20; f = 6765; assert(isequal(fib(n),f))

h = 1 h = 1 h = 2 h = 3 h = 5 h = 8 h = 13 h = 21 h = 34 h = 55 h = 89 h = 144 h = 233 h = 377 h = 610 h = 987 h = 1597 h = 2584 h = 4181

Suggested Problems