Cody

Solution 1631567

Submitted on 21 Sep 2018 by Michael Jarboe
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
x = 'Hello World!'; y_correct = 'Ifmmp Xpsme!'; assert(isequal(si(x),y_correct))

y = 0×0 empty char array z = 8 y = 'I' z = 37 y = 'If' z = 44 y = 'Ifm' z = 44 y = 'Ifmm' z = 47 y = 'Ifmmp' z = [] y = 'Ifmmp ' z = 23 y = 'Ifmmp X' z = 47 y = 'Ifmmp Xp' z = 50 y = 'Ifmmp Xps' z = 44 y = 'Ifmmp Xpsm' z = 36 y = 'Ifmmp Xpsme' z = [] y = 'Ifmmp Xpsme!'

2   Pass
x = 'Can I help you?'; y_correct = 'Dbo J ifmq zpv?'; assert(isequal(si(x),y_correct))

y = 0×0 empty char array z = 3 y = 'D' z = 33 y = 'Db' z = 46 y = 'Dbo' z = [] y = 'Dbo ' z = 9 y = 'Dbo J' z = [] y = 'Dbo J ' z = 40 y = 'Dbo J i' z = 37 y = 'Dbo J if' z = 44 y = 'Dbo J ifm' z = 48 y = 'Dbo J ifmq' z = [] y = 'Dbo J ifmq ' z = 57 y = 'Dbo J ifmq z' z = 47 y = 'Dbo J ifmq zp' z = 53 y = 'Dbo J ifmq zpv' z = [] y = 'Dbo J ifmq zpv?'

3   Pass
x = 'Mary had a liitle lamb.'; y_correct = 'Nbsz ibe b mjjumf mbnc.'; assert(isequal(si(x),y_correct))

y = 0×0 empty char array z = 13 y = 'N' z = 33 y = 'Nb' z = 50 y = 'Nbs' z = 57 y = 'Nbsz' z = [] y = 'Nbsz ' z = 40 y = 'Nbsz i' z = 33 y = 'Nbsz ib' z = 36 y = 'Nbsz ibe' z = [] y = 'Nbsz ibe ' z = 33 y = 'Nbsz ibe b' z = [] y = 'Nbsz ibe b ' z = 44 y = 'Nbsz ibe b m' z = 41 y = 'Nbsz ibe b mj' z = 41 y = 'Nbsz ibe b mjj' z = 52 y = 'Nbsz ibe b mjju' z = 44 y = 'Nbsz ibe b mjjum' z = 37 y = 'Nbsz ibe b mjjumf' z = [] y = 'Nbsz ibe b mjjumf ' z = 44 y = 'Nbsz ibe b mjjumf m' z = 33 y = 'Nbsz ibe b mjjumf mb' z = 45 y = 'Nbsz ibe b mjjumf mbn' z = 34 y = 'Nbsz ibe b mjjumf mbnc' z = [] y = 'Nbsz ibe b mjjumf mbnc.'