Cody

Solution 1811575

Submitted on 9 May 2019 by Albit
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))

i = 1×12 logical array 1 1 1 1 1 0 1 1 1 1 1 0 a = 'Golf' j = 1×4 logical array 1 1 1 1 a = 'Hpmg'

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

i = 1×15 logical array 1 1 1 0 1 0 1 1 1 1 0 1 1 1 0 a = 'Golf' j = 1×4 logical array 1 1 1 1 a = 'Hpmg'

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

i = 1×23 logical array 1 1 1 1 0 1 1 1 0 1 0 1 1 1 1 1 1 0 1 1 1 1 0 a = 'Golf' j = 1×4 logical array 1 1 1 1 a = 'Hpmg'