Cody

Solution 1422227

Submitted on 22 Jan 2018 by Yair Fridman
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))

outStr = 100 111 117 103 outStr = 'nyeq'

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

outStr = 116 104 101 113 117 105 99 107 98 114 111 119 110 102 111 120 outStr = 'ymjvznhpgwtbsktc'

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

outStr = 116 104 101 99 114 111 119 102 108 105 101 115 97 116 109 105 100 110 105 103 104 116 outStr = 'pdaynksbheaowpiezjecdp'