Cody

# Problem 1043. Generate a string like abbcccddddeeeee

Solution 1947116

Submitted on 24 Sep 2019 by Renato SL
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
n = 1; y_correct = 'a'; assert(isequal(your_fcn_name(n),y_correct))

2   Pass
r = 2; y_correct = 'abb'; assert(isequal(your_fcn_name(r),y_correct))

3   Pass
n = 5; y_correct = 'abbcccddddeeeee'; assert(isequal(your_fcn_name(n),y_correct))

4   Pass
ty =18 s_correct ='abbcccddddeeeeeffffffggggggghhhhhhhhiiiiiiiiijjjjjjjjjjkkkkkkkkkkkllllllllllllmmmmmmmmmmmmmnnnnnnnnnnnnnnoooooooooooooooppppppppppppppppqqqqqqqqqqqqqqqqqrrrrrrrrrrrrrrrrrr' assert(strcmp(your_fcn_name(ty),s_correct))

ty = 18 s_correct = 'abbcccddddeeeeeffffffggggggghhhhhhhhiiiiiiiiijjjjjjjjjjkkkkkkkkkkkllllllllllllmmmmmmmmmmmmmnnnnnnnnnnnnnnoooooooooooooooppppppppppppppppqqqqqqqqqqqqqqqqqrrrrrrrrrrrrrrrrrr'
{"ft_lang_label":"__label__en","ft_lang_prob":0.67614555,"math_prob":0.68828636,"size":843,"snap":"2020-34-2020-40","text_gpt3_token_len":326,"char_repetition_ratio":0.30512515,"word_repetition_ratio":0.0,"special_character_ratio":0.21708184,"punctuation_ratio":0.12048193,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97289103,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-13T12:11:32Z\",\"WARC-Record-ID\":\"<urn:uuid:e22ddca7-3a92-4cf6-9113-e2a93f108cb5>\",\"Content-Length\":\"74476\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b3f5d0ea-2a8e-46ed-89f0-ad7ba2d2dae4>\",\"WARC-Concurrent-To\":\"<urn:uuid:17ba61c7-32be-4d51-b125-b5ea78620ab5>\",\"WARC-IP-Address\":\"23.223.252.57\",\"WARC-Target-URI\":\"https://de.mathworks.com/matlabcentral/cody/problems/1043-generate-a-string-like-abbcccddddeeeee/solutions/1947116\",\"WARC-Payload-Digest\":\"sha1:Y72RAGTYSF2X5DLCPQMC3VRK65VI6OES\",\"WARC-Block-Digest\":\"sha1:UGLL3AVOZGRHSU72F6HZ4TFT5SXNA5KY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439738982.70_warc_CC-MAIN-20200813103121-20200813133121-00056.warc.gz\"}"}