Cody

Solution 614067

Submitted on 8 Apr 2015 by Jonathan Campelli
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))

r = 1 1 1 1 c = 4 15 21 7 ans = nyeq

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

r = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 c = 20 8 5 17 21 9 3 11 2 18 15 23 14 6 15 24 ans = ymjvznhpgwtbsktc

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

r = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 c = 20 8 5 3 18 15 23 6 12 9 5 19 1 20 13 9 4 14 9 7 8 20 ans = pdaynksbheaowpiezjecdp