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))
id =
5 8 15 20
c =
'This Is Better Than C++'
|
2 | Pass |
sentence = 'hEy, tHis iS vErY wroNg!';
corrected = 'Hey, This Is Very Wrong!';
assert(isequal(autoCase(sentence), corrected))
id =
5 10 13 18
c =
'Hey, This Is Very Wrong!'
|
3 | Pass |
sentence = 'tHIS sENTENCE wILL bE iNVERTED';
corrected = 'This Sentence Will Be Inverted';
assert(isequal(autoCase(sentence), corrected))
id =
5 14 19 22
c =
'This Sentence Will Be Inverted'
|
4 | Pass |
sentence = 'This Sentence Will Not Be Changed';
corrected = 'This Sentence Will Not Be Changed';
assert(isequal(autoCase(sentence), corrected))
id =
5 14 19 23 26
c =
'This Sentence Will Not Be Changed'
|
5 | Pass |
sentence = 'HELLO THERE';
corrected = 'Hello There';
assert(isequal(autoCase(sentence), corrected))
id =
6
c =
'Hello There'
|
6 | Pass |
sentence = 'AlTeRnAtInG cApS';
corrected = 'Alternating Caps';
assert(isequal(autoCase(sentence), corrected))
id =
12
c =
'Alternating Caps'
|
Project Euler: Problem 1, Multiples of 3 and 5
1492 Solvers
2456 Solvers
664 Solvers
209 Solvers
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!