Cody

# Problem 1043. Generate a string like abbcccddddeeeee

Solution 1416790

Submitted on 15 Jan 2018 by lior ben itach
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.67757684,"math_prob":0.70955515,"size":882,"snap":"2020-10-2020-16","text_gpt3_token_len":336,"char_repetition_ratio":0.29954442,"word_repetition_ratio":0.0,"special_character_ratio":0.21768707,"punctuation_ratio":0.10752688,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.97414315,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-28T09:03:35Z\",\"WARC-Record-ID\":\"<urn:uuid:b46d2e19-56c6-40ca-9a0a-1de5bf01dd28>\",\"Content-Length\":\"74498\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:330b3b9f-9142-43a8-a21b-dcd0f3df9e53>\",\"WARC-Concurrent-To\":\"<urn:uuid:8234819b-c66e-463d-b23b-be4d4dc257c7>\",\"WARC-IP-Address\":\"23.32.68.178\",\"WARC-Target-URI\":\"https://www.mathworks.com/matlabcentral/cody/problems/1043-generate-a-string-like-abbcccddddeeeee/solutions/1416790\",\"WARC-Payload-Digest\":\"sha1:QPKB5I3FJEVFWB6ALAKYNSRSCGAFLBQZ\",\"WARC-Block-Digest\":\"sha1:XR4NWAPZTZDZ3VLORSKLYXEBBJ7VMYXR\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875147116.85_warc_CC-MAIN-20200228073640-20200228103640-00009.warc.gz\"}"}