Cody

# Problem 23. Finding Perfect Squares

Solution 1230035

Submitted on 12 Jul 2017 by Dustin Jones
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))

b = logical 1

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

b = logical 0

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

b = logical 1

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

b = logical 1

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

b = logical 0

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
{"ft_lang_label":"__label__en","ft_lang_prob":0.68043685,"math_prob":0.99081326,"size":719,"snap":"2020-45-2020-50","text_gpt3_token_len":237,"char_repetition_ratio":0.13986014,"word_repetition_ratio":0.13559322,"special_character_ratio":0.36300418,"punctuation_ratio":0.0979021,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9851661,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-05T09:01:28Z\",\"WARC-Record-ID\":\"<urn:uuid:70c04a8f-f548-4c74-a104-768b4e2f429a>\",\"Content-Length\":\"82430\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:99e0ab1d-db93-4ccf-ad2a-0de02860a598>\",\"WARC-Concurrent-To\":\"<urn:uuid:37eff588-7dc8-4199-a865-381524c97e52>\",\"WARC-IP-Address\":\"23.212.144.59\",\"WARC-Target-URI\":\"https://de.mathworks.com/matlabcentral/cody/problems/23-finding-perfect-squares/solutions/1230035\",\"WARC-Payload-Digest\":\"sha1:JNXAZEZDAMLZPXWTJGL6YB2FVT4ICLA7\",\"WARC-Block-Digest\":\"sha1:3MZYZMULFONMD2IKPWEMO6X5J7LDYFKJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141747323.98_warc_CC-MAIN-20201205074417-20201205104417-00409.warc.gz\"}"}