Cody

Solution 1718471

Submitted on 31 Jan 2019 by Rashmi Doijode
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))

n = 1×4 int8 row vector 3 14 20 6

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

n = 1×16 int8 row vector 19 7 4 16 20 8 2 10 1 17 14 22 13 5 14 23

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

n = 1×22 int8 row vector 19 7 4 2 17 14 22 5 11 8 4 18 0 19 12 8 3 13 8 6 7 19