Cody

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

Solution 375838

Submitted on 27 Dec 2013 by Marco Castelli
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 ind = 0 ind = 0 6 div = 6 ind1 = 2 ind2 = 4 l = e s = 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. ind = 0 5 8 12 18 23 25 30 35 ind = 0 5 8 12 18 23 25 30 35 42 div = 5 3 4 6 5 2 5 5 7 ind1 = 2 ind2 = 3 l = h s = Tihs is the first time I have used MATLAB. ind1 = 14 ind2 = 16 l = i s = Tihs is the fsrit time I have used MATLAB. ind1 = 20 ind2 = 21 l = i s = Tihs is the fsrit tmie I have used MATLAB. ind1 = 27 ind2 = 28 l = a s = Tihs is the fsrit tmie I hvae used MATLAB. ind1 = 32 ind2 = 33 l = s s = Tihs is the fsrit tmie I hvae uesd MATLAB. ind1 = 37 ind2 = 40 l = A s = Tihs is the fsrit tmie I hvae uesd MATLAB. ind1 = 38 ind2 = 39 l = T s = Tihs is the fsrit tmie I hvae uesd MALTAB.