Cody

Solution 1911171

Submitted on 24 Aug 2019 by Sivakumar Selvam
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))

x = 'Iello World!' x = 'Ifllo World!' x = 'Ifmlo World!' x = 'Ifmmo World!' x = 'Ifmmp World!' x = 'Ifmmp Xorld!' x = 'Ifmmp Xprld!' x = 'Ifmmp Xpsld!' x = 'Ifmmp Xpsmd!' x = 'Ifmmp Xpsme!'

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

x = 'Dan I help you?' x = 'Dbn I help you?' x = 'Dbo I help you?' x = 'Dbo J help you?' x = 'Dbo J ielp you?' x = 'Dbo J iflp you?' x = 'Dbo J ifmp you?' x = 'Dbo J ifmq you?' x = 'Dbo J ifmq zou?' x = 'Dbo J ifmq zpu?' x = '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))

x = 'Nary had a liitle lamb.' x = 'Nbry had a liitle lamb.' x = 'Nbsy had a liitle lamb.' x = 'Nbsz had a liitle lamb.' x = 'Nbsz iad a liitle lamb.' x = 'Nbsz ibd a liitle lamb.' x = 'Nbsz ibe a liitle lamb.' x = 'Nbsz ibe b liitle lamb.' x = 'Nbsz ibe b miitle lamb.' x = 'Nbsz ibe b mjitle lamb.' x = 'Nbsz ibe b mjjtle lamb.' x = 'Nbsz ibe b mjjule lamb.' x = 'Nbsz ibe b mjjume lamb.' x = 'Nbsz ibe b mjjumf lamb.' x = 'Nbsz ibe b mjjumf mamb.' x = 'Nbsz ibe b mjjumf mbmb.' x = 'Nbsz ibe b mjjumf mbnb.' x = 'Nbsz ibe b mjjumf mbnc.'