Cody

# Problem 88. It dseon't mettar waht oedrr the lrettes in a wrod are.

Solution 1228741

Submitted on 10 Jul 2017 by Augusto Mazzei
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
sIn = 'hello' sOut = 'hlleo' assert(isequal(scrambleText(sIn),sOut))

sIn = 'hello' sOut = 'hlleo' b = 1×0 empty double row vector b = 5 Out = 'hlleo'

2   Pass
sIn = 'This is the first time I have used MATLAB.' sOut = 'Tihs is the fsrit tmie I hvae uesd MALTAB.' assert(isequal(scrambleText(sIn),sOut))

sIn = 'This is the first time I have used MATLAB.' sOut = 'Tihs is the fsrit tmie I hvae uesd MALTAB.' b = 5 8 12 18 23 25 30 35 42 Out = 'Tihs ' b = 3 7 13 18 20 25 30 37 Out = 'Tihs is ' b = 4 10 15 17 22 27 34 Out = 'Tihs is the ' b = 6 11 13 18 23 30 Out = 'Tihs is the fsrit ' b = 5 7 12 17 24 Out = 'Tihs is the fsrit tmie ' b = 2 7 12 19 Out = 'Tihs is the fsrit tmie I ' b = 5 10 17 Out = 'Tihs is the fsrit tmie I hvae ' b = 5 12 Out = 'Tihs is the fsrit tmie I hvae uesd ' b = 7 Out = 'Tihs is the fsrit tmie I hvae uesd MALTAB.'