Cody

Solution 1586559

Submitted on 18 Jul 2018 by Ankith Rathod
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 = 'nyq' outStr = 'nyeq'

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

outStr = 'ymjvznhpgwt|skt}' outStr = 'ymjvznhpgwtbskt}' outStr = 'ymjvznhpgwtbsktc'

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

outStr = 'Š~{yˆ…|‚{‰wŠƒz„}~Š' outStr = 'p~{yˆ…|‚{‰wŠƒz„}~Š' outStr = 'pd{yˆ…|‚{‰wŠƒz„}~Š' outStr = 'pdayˆ…|‚{‰wŠƒz„}~Š' outStr = 'pdayn…|‚{‰wŠƒz„}~Š' outStr = 'pdaynk|‚{‰wŠƒz„}~Š' outStr = 'pdaynks|‚{‰wŠƒz„}~Š' outStr = 'pdaynksb‚{‰wŠƒz„}~Š' outStr = 'pdaynksbh{‰wŠƒz„}~Š' outStr = 'pdaynksbhe{‰wŠƒz„}~Š' outStr = 'pdaynksbhea‰wŠƒz„}~Š' outStr = 'pdaynksbheaowŠƒz„}~Š' outStr = 'pdaynksbheaowpƒz„}~Š' outStr = 'pdaynksbheaowpiz„}~Š' outStr = 'pdaynksbheaowpiez„}~Š' outStr = 'pdaynksbheaowpiezj}~Š' outStr = 'pdaynksbheaowpiezje}~Š' outStr = 'pdaynksbheaowpiezjec~Š' outStr = 'pdaynksbheaowpiezjecdŠ' outStr = 'pdaynksbheaowpiezjecdp'

Suggested Problems