Cody

Solution 1454392

Submitted on 2 Mar 2018 by shimon zusmanovsky
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

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))

sentence = 'this is better than c++' x = 23 sentence = 'This is better than c++' sentence = 'This is better than c++' sentence = 'This is better than c++' sentence = 'This is better than c++' sentence = 'This Is better than c++' sentence = 'This Is better than c++' sentence = 'This Is better than c++' sentence = 'This Is Better than c++' sentence = 'This Is Better than c++' sentence = 'This Is Better than c++' sentence = 'This Is Better than c++' sentence = 'This Is Better than c++' sentence = 'This Is Better than c++' sentence = 'This Is Better than c++' sentence = 'This Is Better Than c++' sentence = 'This Is Better Than c++' sentence = 'This Is Better Than c++' sentence = 'This Is Better Than c++' sentence = 'This Is Better Than c++' sentence = 'This Is Better Than C++' sentence = 'This Is Better Than C++' sentence = 'This Is Better Than C++' sentence = '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))

sentence = 'hey, this is very wrong!' x = 24 sentence = 'Hey, this is very wrong!' sentence = 'Hey, this is very wrong!' sentence = 'Hey, this is very wrong!' sentence = 'Hey, this is very wrong!' sentence = 'Hey, This is very wrong!' sentence = 'Hey, This is very wrong!' sentence = 'Hey, This is very wrong!' sentence = 'Hey, This is very wrong!' sentence = 'Hey, This is very wrong!' sentence = 'Hey, This Is very wrong!' sentence = 'Hey, This Is very wrong!' sentence = 'Hey, This Is very wrong!' sentence = 'Hey, This Is Very wrong!' sentence = 'Hey, This Is Very wrong!' sentence = 'Hey, This Is Very wrong!' sentence = 'Hey, This Is Very wrong!' sentence = 'Hey, This Is Very wrong!' sentence = 'Hey, This Is Very Wrong!' sentence = 'Hey, This Is Very Wrong!' sentence = 'Hey, This Is Very Wrong!' sentence = 'Hey, This Is Very Wrong!' sentence = 'Hey, This Is Very Wrong!' sentence = 'Hey, This Is Very Wrong!' sentence = 'Hey, This Is Very Wrong!' corrected = 'Hey, This Is Very Wrong!'