Cody

Problem 45234. Calculating large fibonacci numbers

Solution 2061380

Submitted on 18 Dec 2019 by Gatech AE
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 = 41

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

y = 62

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

y = 83

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

y = 104

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

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 = 1.9900e-04

Suggested Problems

More from this Author3