Cody

Solution 2035000

Submitted on 25 Nov 2019 by Jean-Marie Sainthillier
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(isSquare(1),true))

ans = logical 1

2   Pass
assert(isequal(isSquare(4),true))

ans = logical 1

3   Pass
assert(isequal(isSquare(9),true))

ans = logical 1

4   Pass
assert(isequal(isSquare(49),true))

ans = logical 1

5   Pass
assert(isequal(isSquare(64),true))

ans = logical 1

6   Pass
assert(isequal(isSquare(15129),true))

ans = logical 1

7   Pass
assert(isequal(isSquare(3),false))

ans = logical 0

8   Pass
assert(isequal(isSquare(199),false))

ans = logical 0