Cody

Solution 2019819

Submitted on 14 Nov 2019 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
assert(isequal(isFibonacci(2),true))

y = Columns 1 through 15 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 Columns 16 through 25 610 987 1597 2584 4181 6765 10946 17711 28657 46368 b = 1

2   Pass
assert(isequal(isFibonacci(3),true))

y = Columns 1 through 15 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 Columns 16 through 25 610 987 1597 2584 4181 6765 10946 17711 28657 46368 b = 1

3   Pass
assert(isequal(isFibonacci(5),true))

y = Columns 1 through 15 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 Columns 16 through 25 610 987 1597 2584 4181 6765 10946 17711 28657 46368 b = 1

4   Pass
assert(isequal(isFibonacci(89),true))

y = Columns 1 through 15 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 Columns 16 through 25 610 987 1597 2584 4181 6765 10946 17711 28657 46368 b = 1

5   Pass
assert(isequal(isFibonacci(233),true))

y = Columns 1 through 15 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 Columns 16 through 25 610 987 1597 2584 4181 6765 10946 17711 28657 46368 b = 1

6   Pass
assert(isequal(isFibonacci(6765),true))

y = Columns 1 through 15 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 Columns 16 through 25 610 987 1597 2584 4181 6765 10946 17711 28657 46368 b = 1

7   Pass
assert(isequal(isFibonacci(18),false))

y = Columns 1 through 15 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 Columns 16 through 25 610 987 1597 2584 4181 6765 10946 17711 28657 46368 b = 0

8   Pass
assert(isequal(isFibonacci(100),false))

y = Columns 1 through 15 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 Columns 16 through 25 610 987 1597 2584 4181 6765 10946 17711 28657 46368 b = 0

9   Pass
assert(isequal(isFibonacci(230),false))

y = Columns 1 through 15 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 Columns 16 through 25 610 987 1597 2584 4181 6765 10946 17711 28657 46368 b = 0

10   Pass
assert(isequal(isFibonacci(514227),false))

y = Columns 1 through 15 0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 Columns 16 through 25 610 987 1597 2584 4181 6765 10946 17711 28657 46368 b = 0