Cody

Solution 2291798

Submitted on 18 May 2020
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   Fail
assert(isequal(isFibonacci(2),true))

ans = logical 0

Assertion failed.

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

ans = logical 0

Assertion failed.

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

ans = logical 0

Assertion failed.

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

ans = logical 0

Assertion failed.

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

ans = logical 0

Assertion failed.

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

ans = logical 0

Assertion failed.

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

ans = logical 0

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

ans = logical 0

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

ans = logical 0

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

ans = logical 0