Cody

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

Solution 2615371

Submitted on 26 Jun 2020 by 春樹 内糸
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' in = 'hello' ws = 1×1 cell array {'hello'} n = 5 str = 'hlleo' f = 'hlleo' ws = 1×1 cell array {'hlleo'} 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.' in = 'This is the first time I have used MATLAB.' in = 'This is the first time I have used MATLAB' ws = 1×9 cell array {'This'} {'is'} {'the'} {'first'} {'time'} {'I'} {'have'} {'used'} {'MATLAB'} n = 4 str = 'Tihs' f = 'Tihs' n = 2 f = 'is' n = 3 str = 'the' f = 'the' n = 5 str = 'fsrit' f = 'fsrit' n = 4 str = 'tmie' f = 'tmie' n = 1 f = 'I' n = 4 str = 'hvae' f = 'hvae' n = 4 str = 'uesd' f = 'uesd' n = 6 str = 'MALTAB' f = 'MALTAB' ws = 1×9 cell array {'Tihs'} {'is'} {'the'} {'fsrit'} {'tmie'} {'I'} {'hvae'} {'uesd'} {'MALTAB'} sOut = 'Tihs is the fsrit tmie I hvae uesd MALTAB' sOut = 'Tihs is the fsrit tmie I hvae uesd MALTAB.'

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!