Cody

Problem 2423. Integer Sequence - II : New Fibonacci

Solution 3847753

Submitted on 25 Nov 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))

Error: You may not use the command(s) ! in your code

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

Error: You may not use the command(s) ! in your code

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

Error: You may not use the command(s) ! in your code

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

Error: You may not use the command(s) ! in your code

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

Error: You may not use the command(s) ! in your code

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

Error: You may not use the command(s) ! in your code

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

Error: You may not use the command(s) ! in your code

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

Error: You may not use the command(s) ! in your code

Suggested Problems

More from this Author44

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!