Cody

Solution 2015232

Submitted on 12 Nov 2019 by pavankumar k
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' abc = 1×1 cell array {'hello'} sOut = [] aa = 'hello' aa = 'hlleo' sOut = ' 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.' abc = 1×9 cell array {'This'} {'is'} {'the'} {'first'} {'time'} {'I'} {'have'} {'used'} {'MATLAB'} sOut = [] aa = 'This' aa = 'Tihs' sOut = ' Tihs' aa = 'is' aa = 'is' sOut = ' Tihs is' aa = 'the' aa = 'the' sOut = ' Tihs is the' aa = 'first' aa = 'fsrit' sOut = ' Tihs is the fsrit' aa = 'time' aa = 'tmie' sOut = ' Tihs is the fsrit tmie' aa = 'I' aa = 'I' sOut = ' Tihs is the fsrit tmie I' aa = 'have' aa = 'hvae' sOut = ' Tihs is the fsrit tmie I hvae' aa = 'used' aa = 'uesd' sOut = ' Tihs is the fsrit tmie I hvae uesd' aa = 'MATLAB' aa = 'MALTAB' sOut = ' 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.'