Cody

# Problem 23. Finding Perfect Squares

Solution 1043132

Submitted on 2 Nov 2016 by Sagar Rupapara
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
a = [2 3 4]; assert(isequal(isItSquared(a),true))

m = 1 n = 3 b = logical 0 x = 4 z = 3 b = logical 1

2   Pass
a = [20:30]; assert(isequal(isItSquared(a),false))

m = 1 n = 11 b = logical 0 x = 400 z = 0 x = 441 z = 0 x = 484 z = 0 x = 529 z = 0 x = 576 z = 0 x = 625 z = 0 x = 676 z = 0 x = 729 z = 0 x = 784 z = 0 x = 841 z = 0 x = 900 z = 0

3   Pass
a = ; assert(isequal(isItSquared(a),true))

m = 1 n = 1 b = logical 0 x = 1 z = 1 b = logical 1

4   Pass
a = [6 10 12 14 36 101]; assert(isequal(isItSquared(a),true))

m = 1 n = 6 b = logical 0 x = 36 z = 5 b = logical 1

5   Pass
a = [6 10 12 14 101]; assert(isequal(isItSquared(a),false))

m = 1 n = 5 b = logical 0 x = 36 z = 0 x = 100 z = 0 x = 144 z = 0 x = 196 z = 0 x = 10201 z = 0