Cody

# Problem 43058. Count the numbers

Solution 3533204

Submitted on 3 Nov 2020 by Alex
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
x = [1 2 3 4 3 2 1 2]; n = 2; y_correct = 3; assert(isequal(countN(x,n),y_correct))

2   Pass
x = [1 2 3 4 3 2 1 2]; n = 4; y_correct = 1; assert(isequal(countN(x,n),y_correct))

3   Pass
x = [1 2 3 4 3 2 1 2]; n = 1; y_correct = 2; assert(isequal(countN(x,n),y_correct))

### 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.63239825,"math_prob":0.9942966,"size":629,"snap":"2021-04-2021-17","text_gpt3_token_len":230,"char_repetition_ratio":0.1392,"word_repetition_ratio":0.23275863,"special_character_ratio":0.40222576,"punctuation_ratio":0.18,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9835378,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-20T01:24:37Z\",\"WARC-Record-ID\":\"<urn:uuid:09e41b68-5709-44b8-86d4-63e7b50e902f>\",\"Content-Length\":\"79857\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b4221eab-aa69-45ea-9138-03f844ea0cce>\",\"WARC-Concurrent-To\":\"<urn:uuid:d3b6eb76-4015-491d-b2e1-338956b309f7>\",\"WARC-IP-Address\":\"184.25.198.13\",\"WARC-Target-URI\":\"https://de.mathworks.com/matlabcentral/cody/problems/43058-count-the-numbers/solutions/3533204\",\"WARC-Payload-Digest\":\"sha1:3TLHFY6AMGFW4TSW3J6SPNS72CD2IZFK\",\"WARC-Block-Digest\":\"sha1:EY64LNM4EAOR64TXFM3P2KCC3W7DUSMV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610703519843.24_warc_CC-MAIN-20210119232006-20210120022006-00660.warc.gz\"}"}