Cody

# Problem 1080. Guess Cipher

Solution 1908764

Submitted on 22 Aug 2019 by Pauli Huusari
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 = 'I' y = 'If' y = 'Ifm' y = 'Ifmm' y = 'Ifmmp' y = 'Ifmmp ' y = 'Ifmmp X' y = 'Ifmmp Xp' y = 'Ifmmp Xps' y = 'Ifmmp Xpsm' y = 'Ifmmp Xpsme' y = 'Ifmmp Xpsme!'

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

y = 'D' y = 'Db' y = 'Dbo' y = 'Dbo ' y = 'Dbo J' y = 'Dbo J ' y = 'Dbo J i' y = 'Dbo J if' y = 'Dbo J ifm' y = 'Dbo J ifmq' y = 'Dbo J ifmq ' y = 'Dbo J ifmq z' y = 'Dbo J ifmq zp' y = 'Dbo J ifmq zpv' 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 = 'N' y = 'Nb' y = 'Nbs' y = 'Nbsz' y = 'Nbsz ' y = 'Nbsz i' y = 'Nbsz ib' y = 'Nbsz ibe' y = 'Nbsz ibe ' y = 'Nbsz ibe b' y = 'Nbsz ibe b ' y = 'Nbsz ibe b m' y = 'Nbsz ibe b mj' y = 'Nbsz ibe b mjj' y = 'Nbsz ibe b mjju' y = 'Nbsz ibe b mjjum' y = 'Nbsz ibe b mjjumf' y = 'Nbsz ibe b mjjumf ' y = 'Nbsz ibe b mjjumf m' y = 'Nbsz ibe b mjjumf mb' y = 'Nbsz ibe b mjjumf mbn' y = 'Nbsz ibe b mjjumf mbnc' y = 'Nbsz ibe b mjjumf mbnc.'