Cody

Solution 693175

Submitted on 29 Jun 2015 by Mark Orloff
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))

c = 2 c = 3 c = 4 b = 1

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

c = 20 c = 21 c = 22 c = 23 c = 24 c = 25 c = 26 c = 27 c = 28 c = 29 c = 30 b = 0

3   Pass
%% a = [1]; assert(isequal(isItSquared(a),true))

c = 1 b = 1

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

c = 6 c = 10 c = 12 c = 14 c = 36 c = 101 b = 1

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

c = 6 c = 10 c = 12 c = 14 c = 101 b = 0