Cody

Solution 1957823

Submitted on 3 Oct 2019 by Shiv010
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))

A = 73 x = 'Iello World!' A = 102 x = 'Ifllo World!' A = 109 x = 'Ifmlo World!' A = 109 x = 'Ifmmo World!' A = 112 x = 'Ifmmp World!' A = 33 x = 'Ifmmp World!' A = 88 x = 'Ifmmp Xorld!' A = 112 x = 'Ifmmp Xprld!' A = 115 x = 'Ifmmp Xpsld!' A = 109 x = 'Ifmmp Xpsmd!' A = 101 x = 'Ifmmp Xpsme!' y = 'Ifmmp Xpsme!'

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

A = 68 x = 'Dan I help you?' A = 98 x = 'Dbn I help you?' A = 111 x = 'Dbo I help you?' A = 33 x = 'Dbo I help you?' A = 74 x = 'Dbo J help you?' A = 33 x = 'Dbo J help you?' A = 105 x = 'Dbo J ielp you?' A = 102 x = 'Dbo J iflp you?' A = 109 x = 'Dbo J ifmp you?' A = 113 x = 'Dbo J ifmq you?' A = 33 x = 'Dbo J ifmq you?' A = 122 x = 'Dbo J ifmq zou?' A = 112 x = 'Dbo J ifmq zpu?' A = 118 x = '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))

A = 78 x = 'Nary had a liitle lamb.' A = 98 x = 'Nbry had a liitle lamb.' A = 115 x = 'Nbsy had a liitle lamb.' A = 122 x = 'Nbsz had a liitle lamb.' A = 33 x = 'Nbsz had a liitle lamb.' A = 105 x = 'Nbsz iad a liitle lamb.' A = 98 x = 'Nbsz ibd a liitle lamb.' A = 101 x = 'Nbsz ibe a liitle lamb.' A = 33 x = 'Nbsz ibe a liitle lamb.' A = 98 x = 'Nbsz ibe b liitle lamb.' A = 33 x = 'Nbsz ibe b liitle lamb.' A = 109 x = 'Nbsz ibe b miitle lamb.' A = 106 x = 'Nbsz ibe b mjitle lamb.' A = 106 x = 'Nbsz ibe b mjjtle lamb.' A = 117 x = 'Nbsz ibe b mjjule lamb.' A = 109 x = 'Nbsz ibe b mjjume lamb.' A = 102 x = 'Nbsz ibe b mjjumf lamb.' A = 33 x = 'Nbsz ibe b mjjumf lamb.' A = 109 x = 'Nbsz ibe b mjjumf mamb.' A = 98 x = 'Nbsz ibe b mjjumf mbmb.' A = 110 x = 'Nbsz ibe b mjjumf mbnb.' A = 99 x = 'Nbsz ibe b mjjumf mbnc.' y = 'Nbsz ibe b mjjumf mbnc.'

Suggested Problems

More from this Author11