This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 'Help';
y_correct = 'eHpl';
assert(isequal(reverse_within_string(x),y_correct))
x =
'eHlp'
x =
'eHpl'
|
2 | Pass |
x = 'between';
y_correct = 'tebwnee';
assert(isequal(reverse_within_string(x),y_correct))
x =
'tebween'
x =
'tebwnee'
|
3 | Pass |
x = 'yellow';
y_correct = 'leywol';
assert(isequal(reverse_within_string(x),y_correct))
x =
'leylow'
x =
'leywol'
|
4 | Pass |
x = 'apple';
y_correct = 'papel';
assert(isequal(reverse_within_string(x),y_correct))
x =
'paple'
x =
'papel'
|
5 | Pass |
x = 'one, two, three';
y_correct = 'wt ,enooeerht ,';
assert(isequal(reverse_within_string(x),y_correct))
x =
'wt ,enoo, three'
x =
'wt ,enooeerht ,'
|
6 | Pass |
x = 'red green blue';
y_correct = 'erg dereulb ne';
assert(isequal(reverse_within_string(x),y_correct))
x =
'erg deren blue'
x =
'erg dereulb ne'
|
7 | Pass |
x = 'a';
y_correct = 'a';
assert(isequal(reverse_within_string(x),y_correct))
x =
'a'
x =
'a'
|
8 | Pass |
x = '1234567890';
y_correct = '5432109876';
assert(isequal(reverse_within_string(x),y_correct))
x =
'5432167890'
x =
'5432109876'
|
272 Solvers
511 Solvers
480 Solvers
156 Solvers
Find out sum of all elements of given Matrix
349 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!