Cody

Solution 1120894

Submitted on 12 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
inStr = 'doug'; shift = 10; outStr = 'nyeq'; assert(isequal(cypher(inStr, shift),outStr))

f = 10 addLoc = 1 2 4 subLoc = 3

2   Pass
inStr = 'thequickbrownfox'; shift = 5; outStr = 'ymjvznhpgwtbsktc'; assert(isequal(cypher(inStr, shift),outStr))

f = 5 addLoc = 1 2 3 4 5 6 7 8 9 10 11 13 14 15 subLoc = 12 16

3   Pass
inStr = 'thecrowfliesatmidnight'; shift = 22; outStr = 'pdaynksbheaowpiezjecdp'; assert(isequal(cypher(inStr, shift),outStr))

f = 22 addLoc = 4 13 17 subLoc = Columns 1 through 16 1 2 3 5 6 7 8 9 10 11 12 14 15 16 18 19 Columns 17 through 19 20 21 22