Cody

# Problem 45234. Calculating large fibonacci numbers

Solution 2114808

Submitted on 2 Feb 2020 by Nikolaos Nikolaou
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))

y = 21

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

y = 29

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

y = 42 y = 41

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

y = 63 y = 62

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

y = 84 y = 83

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

y = 105 y = 104

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

y = 210 y = 209

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

y = 230

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

y = 230 time = 4.6300e-04

### Community Treasure Hunt

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

Start Hunting!