Cody

Problem 2423. Integer Sequence - II : New Fibonacci

Solution 2101603

Submitted on 22 Jan 2020 at 3:52
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))

Error in solution: Line: 16 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "newFibo".)

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

Error in solution: Line: 16 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "newFibo".)

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

Error in solution: Line: 16 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "newFibo".)

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

Error in solution: Line: 16 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "newFibo".)

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

Error in solution: Line: 16 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "newFibo".)

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

Error in solution: Line: 16 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "newFibo".)

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

Error in solution: Line: 16 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "newFibo".)

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

Error in solution: Line: 16 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "newFibo".)