Cody

Solution 1417226

Submitted on 15 Jan 2018 by shimon zusmanovsky
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))

y = [] x = 97 y = 97 x = 98 y = 'a'

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

y = [] x = 97 y = 97 x = 98 y = 97 98 y = 97 98 98 x = 99 y = 'abb'

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

y = [] x = 97 y = 97 x = 98 y = 97 98 y = 97 98 98 x = 99 y = 97 98 98 99 y = 97 98 98 99 99 y = 97 98 98 99 99 99 x = 100 y = 97 98 98 99 99 99 100 y = 97 98 98 99 99 99 100 100 y = 97 98 98 99 99 99 100 100 100 y = 97 98 98 99 99 99 100 100 100 100 x = 101 y = 97 98 98 99 99 99 100 100 100 100 101 y = 97 98 98 99 99 99 100 100 100 100 101 101 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 x = 102 y = 'abbcccddddeeeee'

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

ty = 18 s_correct = 'abbcccddddeeeeeffffffggggggghhhhhhhhiiiiiiiiijjjjjjjjjjkkkkkkkkkkkllllllllllllmmmmmmmmmmmmmnnnnnnnnnnnnnnoooooooooooooooppppppppppppppppqqqqqqqqqqqqqqqqqrrrrrrrrrrrrrrrrrr' y = [] x = 97 y = 97 x = 98 y = 97 98 y = 97 98 98 x = 99 y = 97 98 98 99 y = 97 98 98 99 99 y = 97 98 98 99 99 99 x = 100 y = 97 98 98 99 99 99 100 y = 97 98 98 99 99 99 100 100 y = 97 98 98 99 99 99 100 100 100 y = 97 98 98 99 99 99 100 100 100 100 x = 101 y = 97 98 98 99 99 99 100 100 100 100 101 y = 97 98 98 99 99 99 100 100 100 100 101 101 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 x = 102 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 x = 103 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 x = 104 y = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Column 30 104 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 31 104 104 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 32 104 104 104 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 33 104 104 104 104 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 34 104 104 104 104 104 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 35 104 104 104 104 104 104 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 36 104 104 104 104 104 104 104 x = 105 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 37 104 104 104 104 104 104 104 105 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 38 104 104 104 104 104 104 104 105 105 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 39 104 104 104 104 104 104 104 105 105 105 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 40 104 104 104 104 104 104 104 105 105 105 105 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 41 104 104 104 104 104 104 104 105 105 105 105 105 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 42 104 104 104 104 104 104 104 105 105 105 105 105 105 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 43 104 104 104 104 104 104 104 105 105 105 105 105 105 105 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 44 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 45 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 x = 106 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 46 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 47 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 48 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 49 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 106 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 50 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 106 106 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 103 103 103 103 103 103 104 Columns 30 through 51 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 106 106 106 y = Columns 1 through 29 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 103 ...