Cody

Problem 2423. Integer Sequence - II : New Fibonacci

Solution 2814772

Submitted on 10 Aug 2020 by Ramesh Kumar V
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))

z = 1

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

z = 1

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

z = 1

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

z = 2

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

z = 5

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

z = 21

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

z = 10946

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

z = 5702887