Cody

Solution 1937776

Submitted on 16 Sep 2019
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(newFibo(1),1))

ans = 1

2   Pass
assert(isequal(newFibo(2),1))

ans = 1

3   Fail
assert(isequal(newFibo(3),1))

ans = 2

Assertion failed.

4   Fail
assert(isequal(newFibo(4),2))

ans = 3

Assertion failed.

5   Pass
assert(isequal(newFibo(5),5))

ans = 5

6   Pass
assert(isequal(newFibo(6),21))

ans = 21

7   Pass
assert(isequal(newFibo(8),10946))

ans = 10946

8   Pass
assert(isequal(newFibo(9),5702887))

ans = 5702887