Cody

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

Solution 1644324

Submitted on 13 Oct 2018 by Yoshinobu Kawada
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' L = 1×5 logical array 1 1 1 1 1 Separater = 0 6 Word = 6 O = 1 2 3 4 5 sOut = '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.' L = 1×42 logical array 1 1 1 1 0 1 1 0 1 1 1 0 1 1 1 1 1 0 1 1 1 1 0 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 1 0 Separater = 0 5 8 12 18 23 25 30 35 42 43 Word = 5 3 4 6 5 2 5 5 7 1 O = Columns 1 through 29 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Columns 30 through 42 30 31 32 33 34 35 36 37 38 39 40 41 42 sOut = 'Tihs is the fsrit tmie I hvae uesd MALTAB.'