Cody

# Problem 2423. Integer Sequence - II : New Fibonacci

Solution 2056612

Submitted on 13 Dec 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   Fail
assert(isequal(newFibo(1),1))

Output argument "ans" (and maybe others) not assigned during call to "newFibo". Error in Test1 (line 1) assert(isequal(newFibo(1),1))

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

Output argument "ans" (and maybe others) not assigned during call to "newFibo". Error in Test2 (line 1) assert(isequal(newFibo(2),1))

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

Output argument "ans" (and maybe others) not assigned during call to "newFibo". Error in Test3 (line 1) assert(isequal(newFibo(3),1))

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

ans = 2

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

ans = 3

Assertion failed.

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

ans = 5

Assertion failed.

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

ans = 13

Assertion failed.

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

ans = 21

Assertion failed.