Cody

Problem 45466. Fibonacci Word

Solution 2898635

Submitted on 1 Sep 2020 by Alfonso Nieto-Castanon
  • Size: 38
  • This is the leading solution.
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(fibo(10,'10'),21))

2   Pass
assert(isequal(fibo(15,'10101'),88))

3   Pass
assert(isequal(fibo(15,'10001'),0))

4   Pass
assert(isequal(fibo(6,'0'),3))

Suggested Problems

More from this Author149

Community Treasure Hunt

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

Start Hunting!