Cody

Solution 1203451

Submitted on 3 Jun 2017 by Said BOUREZG
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))

k = 'abcdefghijklmnopqrstuvwxyz' ans = [] ans = 97 ans = 'a'

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

k = 'abcdefghijklmnopqrstuvwxyz' ans = [] ans = 97 ans = 97 98 98 ans = 'abb'

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

k = 'abcdefghijklmnopqrstuvwxyz' ans = [] ans = 97 ans = 97 98 98 ans = 97 98 98 99 99 99 ans = 97 98 98 99 99 99 100 100 100 100 ans = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 ans = 'abbcccddddeeeee'

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

ty = 18 s_correct = 'abbcccddddeeeeeffffffggggggghhhhhhhhiiiiiiiiijjjjjjjjjjkkkkkkkkkkkllllllllllllmmmmmmmmmmmmmnnnnnnnnnnnnnnoooooooooooooooppppppppppppppppqqqqqqqqqqqqqqqqqrrrrrrrrrrrrrrrrrr' k = 'abcdefghijklmnopqrstuvwxyz' ans = [] ans = 97 ans = 97 98 98 ans = 97 98 98 99 99 99 ans = 97 98 98 99 99 99 100 100 100 100 ans = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 ans = 97 98 98 99 99 99 100 100 100 100 101 101 101 101 101 102 102 102 102 102 102 ans = 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 ans = 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 ans = 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 ans = 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 55 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 106 106 106 106 106 106 106 ans = 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 58 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 106 106 106 106 106 106 106 107 107 107 Columns 59 through 66 107 107 107 107 107 107 107 107 ans = 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 58 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 106 106 106 106 106 106 106 107 107 107 Columns 59 through 78 107 107 107 107 107 107 107 107 108 108 108 108 108 108 108 108 108 108 108 108 ans = 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 58 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 106 106 106 106 106 106 106 107 107 107 Columns 59 through 87 107 107 107 107 107 107 107 107 108 108 108 108 108 108 108 108 108 108 108 108 109 109 109 109 109 109 109 109 109 Columns 88 through 91 109 109 109 109 ans = 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 58 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 106 106 106 106 106 106 106 107 107 107 Columns 59 through 87 107 107 107 107 107 107 107 107 108 108 108 108 108 108 108 108 108 108 108 108 109 109 109 109 109 109 109 109 109 Columns 88 through 105 109 109 109 109 110 110 110 110 110 110 110 110 110 110 110 110 110 110 ans = 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 58 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 106 106 106 106 106 106 106 107 107 107 Columns 59 through 87 107 107 107 107 107 107 107 107 108 108 108 108 108 108 108 108 108 108 108 108 109 109 109 109 109 109 109 109 109 Columns 88 through 116 109 109 109 109 110 110 110 110 110 110 110 110 110 110 110 110 110 110 111 111 111 111 111 111 111 111 111 111 111 Columns 117 through 120 111 111 111 111 ans = 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 58 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 106 106 106 106 106 106 106 107 107 107 Columns 59 through 87 107 107 107 107 107 107 107 107 108 108 108 108 108 108 108 108 108 108 108 108 109 109 109 109 109 109 109 109 109 Columns 88 through 116 109 109 109 109 110 110 110 110 110 110 110 110 110 110 110 110 110 110 111 111 111 111 111 111 111 111 111 111 111 Columns 117 through 136 111 111 111 111 112 112 112 112 112 112 112 112 112 112 112 112 112 112 112 112 ans = 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 58 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 106 106 106 106 106 106 106 107 107 107 Columns 59 through 87 107 107 107 107 107 107 107 107 108 108 108 108 108 108 108 108 108 108 108 108 109 109 109 109 109 109 109 109 109 Columns 88 through 116 109 109 109 109 110 110 110 110 110 110 110 110 110 110 110 110 110 110 111 111 111 111 111 111 111 111 111 111 111 Columns 117 through 145 111 111 111 111 112 112 112 112 112 112 112 112 112 112 112 112 112 112 112 112 113 113 113 113 113 113 113 113 113 Columns 146 through 153 113 113 113 113 113 113 113 113 ans = 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 58 104 104 104 104 104 104 104 105 105 105 105 105 105 105 105 105 106 106 106 106 106 106 106 106 106 106 107 107 107 Columns 59 through 87 107 107 107 107 107 107 107 107 108 108 108 108 108 108 108 108 108 108 108 108 109 109 109 109 109 109 109 109 109 Columns 88 through 116 109 109 109 109 110 110 110 110 110 110 110 110 110 110 110 110 110 110 111 111 111 111 111 111 111 111 111 111 111 Columns 117 through 145 111 111 111 111 112 112 112 112 112 112 112 112 112 112 112 112 112 112 112 112 113 113 113 113 113 113 113 113 113 Columns 146 through 171 113 113 113 113 113 113 113 113 114 114 114 114 114 114 114 114 114 114 114 114 114 114 114 114 114 114 ans = 'abbcccddddeeeeeffffffggggggghhhhhhhhiiiiiiiiijjjjjjjjjjkkkkkkkkkkkllllllllllllmmmmmmmmmmmmmnnnnnnnnnnnnnnoooooooooooooooppppppppppppppppqqqqqqqqqqqqqqqqqrrrrrrrrrrrrrrrrrr'