This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
sentence = 'this is BETTER than C++';
corrected = 'This Is Better Than C++';
assert(isequal(autoCase(sentence), corrected))
x =
'this is better than c++'
x =
'This is better than c++'
n =
23
x =
'This Is better than c++'
x =
'This Is Better than c++'
x =
'This Is Better Than c++'
x =
'This Is Better Than C++'
corrected =
'This Is Better Than C++'
|
2 | Pass |
sentence = 'hEy, tHis iS vErY wroNg!';
corrected = 'Hey, This Is Very Wrong!';
assert(isequal(autoCase(sentence), corrected))
x =
'hey, this is very wrong!'
x =
'Hey, this is very wrong!'
n =
24
x =
'Hey, This is very wrong!'
x =
'Hey, This Is very wrong!'
x =
'Hey, This Is Very wrong!'
x =
'Hey, This Is Very Wrong!'
corrected =
'Hey, This Is Very Wrong!'
|
Magic is simple (for beginners)
2757 Solvers
292 Solvers
486 Solvers
Pernicious Anniversary Problem
735 Solvers
Find the average of a random sequance
334 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!