Cody

Problem 2423. Integer Sequence - II : New Fibonacci

Solution 2099260

Submitted on 20 Jan 2020
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   Fail
assert(isequal(newFibo(1),1))

Unrecognized function or variable 'N'. Error in newFibo (line 4) for i = 3:N Error in Test1 (line 1) assert(isequal(newFibo(1),1))

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

Unrecognized function or variable 'N'. Error in newFibo (line 4) for i = 3:N Error in Test2 (line 1) assert(isequal(newFibo(2),1))

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

Unrecognized function or variable 'N'. Error in newFibo (line 4) for i = 3:N Error in Test3 (line 1) assert(isequal(newFibo(3),1))

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

Unrecognized function or variable 'N'. Error in newFibo (line 4) for i = 3:N Error in Test4 (line 1) assert(isequal(newFibo(4),2))

5   Fail
assert(isequal(newFibo(5),5))

Unrecognized function or variable 'N'. Error in newFibo (line 4) for i = 3:N Error in Test5 (line 1) assert(isequal(newFibo(5),5))

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

Unrecognized function or variable 'N'. Error in newFibo (line 4) for i = 3:N Error in Test6 (line 1) assert(isequal(newFibo(6),21))

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

Unrecognized function or variable 'N'. Error in newFibo (line 4) for i = 3:N Error in Test7 (line 1) assert(isequal(newFibo(8),10946))

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

Unrecognized function or variable 'N'. Error in newFibo (line 4) for i = 3:N Error in Test8 (line 1) assert(isequal(newFibo(9),5702887))