Cody

Solution 1239378

Submitted on 26 Jul 2017 by Augusto Mazzei
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))

b = 'Hello World!' f = 1 6 7 12 F = 2 3 4 5 8 9 10 11 b = 'Iello;Xorld<' b = 'Ifmmp;Xpsme<' b = 'Ifmmp Xpsme!' ans = 'Ifmmp Xpsme!'

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

b = 'Can I help you?' f = 1 4 5 6 11 15 F = 2 3 7 8 9 10 12 13 14 b = 'Dan;J;help;you@' b = 'Dbo;J;ifmq;zpv@' b = 'Dbo J ifmq zpv?' ans = '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))

b = 'Mary had a liitle lamb.' f = 1 5 9 11 18 23 F = 2 3 4 6 7 8 10 12 13 14 15 16 17 19 20 21 22 b = 'Nary;had;a;liitle;lamb/' b = 'Nbsz;ibe;b;mjjumf;mbnc/' b = 'Nbsz ibe b mjjumf mbnc.' ans = 'Nbsz ibe b mjjumf mbnc.'