Cody

Problem 45234. Calculating large fibonacci numbers

Solution 2057207

Submitted on 14 Dec 2019 by Martin C.
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))

one = 1 two = 1

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

one = 1 two = 1

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

one = 1 two = 1

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

one = 1 two = 1

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

one = 1 two = 1

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

one = 1 two = 1

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

one = 1 two = 1

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

one = 1 two = 1

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

one = 1 two = 1 time = 3.1300e-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!