This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
sIn = 'hello'
sOut = 'hlleo'
assert(isequal(scrambleText(sIn),sOut))
sIn =
'hello'
sOut =
'hlleo'
a2 =
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.'
a2 =
Columns 1 through 30
1 2 3 4 6 7 9 10 11 13 14 15 16 17 19 20 21 22 24 26 27 28 29 31 32 33 34 36 37 38
Columns 31 through 33
39 40 41
sOut =
'Tihs is the fsrit tmie I hvae uesd MALTAB.'
|
Find the alphabetic word product
1998 Solvers
13816 Solvers
Get the length of a given vector
1369 Solvers
341 Solvers
443 Solvers