Cody

Solution 1944604

Submitted on 20 Sep 2019 at 21:53
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))

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

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

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

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

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

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

Index exceeds the number of array elements (6). Error in newFibo (line 3) y = s(x); Error in Test7 (line 1) assert(isequal(newFibo(8),10946))

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

Index exceeds the number of array elements (6). Error in newFibo (line 3) y = s(x); Error in Test8 (line 1) assert(isequal(newFibo(9),5702887))