Cody

Problem 45234. Calculating large fibonacci numbers

Solution 2601364

Submitted on 23 Jun 2020 by ChrisR
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
x = 100; y_correct = 21; assert(isequal(your_fcn_name(x),y_correct))

2   Pass
x = 140; y_correct = 29; assert(isequal(your_fcn_name(x),y_correct))

3   Pass
x = 200; y_correct = 41; assert(isequal(your_fcn_name(x),y_correct))

4   Pass
x = 300; y_correct = 62; assert(isequal(your_fcn_name(x),y_correct))

5   Pass
x = 400; y_correct = 83; assert(isequal(your_fcn_name(x),y_correct))

6   Pass
x = 500; y_correct = 104; assert(isequal(your_fcn_name(x),y_correct))

7   Pass
x = 1000; y_correct = 209; assert(isequal(your_fcn_name(x),y_correct))

8   Pass
x = 1100; y_correct = 230; assert(isequal(your_fcn_name(x),y_correct))

9   Pass
x = 1100; y_correct = 230; tic assert(isequal(your_fcn_name(x),y_correct)) time = toc assert(time < .01)

time = 1.9200e-04

Suggested Problems

More from this Author3

Community Treasure Hunt

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

Start Hunting!