Cody

# Problem 434. Return the Fibonacci Sequence

Solution 1622578

Submitted on 5 Sep 2018 by Jim Riggs
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 = fib_seq(34); assert(isequal(X(end),21) && length(X)==8)

[Warning: Too many FOR loop iterations. Stopping after 9223372036854775806 iterations.] [> In fib_seq (line 9) In ScoringEngineTestPoint1 (line 1) In solutionTest (line 3)]

2   Pass
X = fib_seq(35); assert(isequal(X(end),34) && length(X)==9)

[Warning: Too many FOR loop iterations. Stopping after 9223372036854775806 iterations.] [> In fib_seq (line 9) In ScoringEngineTestPoint2 (line 1) In solutionTest (line 5)]

3   Pass
X = fib_seq(145); assert(isequal(X(end),144) && length(X)==12)

[Warning: Too many FOR loop iterations. Stopping after 9223372036854775806 iterations.] [> In fib_seq (line 9) In ScoringEngineTestPoint3 (line 1) In solutionTest (line 7)]

4   Pass
X = fib_seq(4196); assert(isequal(X(end),4181) && length(X)==19)

[Warning: Too many FOR loop iterations. Stopping after 9223372036854775806 iterations.] [> In fib_seq (line 9) In ScoringEngineTestPoint4 (line 1) In solutionTest (line 9)]

5   Pass
X = fib_seq(987419996); assert(isequal(X(end),701408733) && length(X)==44)

[Warning: Too many FOR loop iterations. Stopping after 9223372036854775806 iterations.] [> In fib_seq (line 9) In ScoringEngineTestPoint5 (line 1) In solutionTest (line 11)]

6   Pass
X = fib_seq(1134903171); assert(isequal(X(end),1134903170) && length(X)==45)

[Warning: Too many FOR loop iterations. Stopping after 9223372036854775806 iterations.] [> In fib_seq (line 9) In ScoringEngineTestPoint6 (line 1) In solutionTest (line 13)]

7   Pass
X = fib_seq(98691443031971); assert(isequal(X(end),72723460248141) && length(X)==68)

[Warning: Too many FOR loop iterations. Stopping after 9223372036854775806 iterations.] [> In fib_seq (line 9) In ScoringEngineTestPoint7 (line 1) In solutionTest (line 15)]