Cody

Solution 1814335

Submitted on 14 May 2019 by wxy daisy
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))

b = 14 b = 25 b = 31 b = 17

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

b = 25 b = 13 b = 10 b = 22 b = 26 b = 14 b = 8 b = 16 b = 7 b = 23 b = 20 b = 28 b = 19 b = 11 b = 20 b = 29

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

b = 42 b = 30 b = 27 b = 25 b = 40 b = 37 b = 45 b = 28 b = 34 b = 31 b = 27 b = 41 b = 23 b = 42 b = 35 b = 31 b = 26 b = 36 b = 31 b = 29 b = 30 b = 42

Suggested Problems