Cody

Solution 1163741

Submitted on 14 Apr 2017 by Abhishek Sahoo
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))

set_new = 'klmnopqrstuvwxyzabcdefghij' temp = 'an' temp = 'any' temp = 'anye' temp = 'anyeq'

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

set_new = 'fghijklmnopqrstuvwxyzabcde' temp = 'ay' temp = 'aym' temp = 'aymj' temp = 'aymjv' temp = 'aymjvz' temp = 'aymjvzn' temp = 'aymjvznh' temp = 'aymjvznhp' temp = 'aymjvznhpg' temp = 'aymjvznhpgw' temp = 'aymjvznhpgwt' temp = 'aymjvznhpgwtb' temp = 'aymjvznhpgwtbs' temp = 'aymjvznhpgwtbsk' temp = 'aymjvznhpgwtbskt' temp = 'aymjvznhpgwtbsktc'

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

set_new = 'wxyzabcdefghijklmnopqrstuv' temp = 'ap' temp = 'apd' temp = 'apda' temp = 'apday' temp = 'apdayn' temp = 'apdaynk' temp = 'apdaynks' temp = 'apdaynksb' temp = 'apdaynksbh' temp = 'apdaynksbhe' temp = 'apdaynksbhea' temp = 'apdaynksbheao' temp = 'apdaynksbheaow' temp = 'apdaynksbheaowp' temp = 'apdaynksbheaowpi' temp = 'apdaynksbheaowpie' temp = 'apdaynksbheaowpiez' temp = 'apdaynksbheaowpiezj' temp = 'apdaynksbheaowpiezje' temp = 'apdaynksbheaowpiezjec' temp = 'apdaynksbheaowpiezjecd' temp = 'apdaynksbheaowpiezjecdp'