Cody

Solution 1120784

Submitted on 11 Feb 2017 by Jihye Sofia Seo
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
s1 = 'I love MATLAB'; s2_correct = 'V ybir ZNGYNO'; assert(isequal(rot13(s1),s2_correct))

addLoc = 1 3 6 8 9 11 12 13 subLoc = 4 5 10

2   Pass
s1 = 'I <3 MATLAB!!'; s2_correct = 'V <3 ZNGYNO!!'; assert(isequal(rot13(s1),s2_correct))

addLoc = 1 6 7 9 10 11 subLoc = 8

3   Pass
s1 = 'The quick fox stumbled over the confusing instructions.'; s2_correct = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafgehpgvbaf.'; assert(isequal(rot13(s1),s2_correct))

addLoc = Columns 1 through 16 2 3 7 8 9 11 18 19 20 21 22 26 30 31 33 36 Columns 17 through 21 39 41 43 49 51 subLoc = Columns 1 through 16 1 5 6 12 13 15 16 17 24 25 27 29 34 35 37 38 Columns 17 through 26 40 44 45 46 47 48 50 52 53 54

4   Pass
s1 = 'Snape kills Dumbledore on page 606. Also, there is no Santa.'; s2_correct = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf ab Fnagn.'; assert(isequal(rot13(s1),s2_correct))

addLoc = Columns 1 through 16 3 5 7 8 9 10 13 15 16 17 18 19 22 28 29 30 Columns 17 through 24 37 38 44 45 47 49 56 59 subLoc = Columns 1 through 16 1 2 4 11 14 20 21 24 25 27 39 40 43 46 50 52 Columns 17 through 20 53 55 57 58