Cody

Solution 204097

Submitted on 14 Feb 2013 by Frank
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))

ans = 2 ans = 3 ans = 4

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

ans = 20 ans = 21 ans = 22 ans = 23 ans = 24 ans = 25 ans = 26 ans = 27 ans = 28 ans = 29 ans = 30

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

ans = 1

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

ans = 6 ans = 10 ans = 12 ans = 14 ans = 36 ans = 101

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

ans = 6 ans = 10 ans = 12 ans = 14 ans = 101