Cody

Solution 337730

Submitted on 23 Oct 2013 by Eli Gershon
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 = 110 outStr = 110 121 outStr = 110 121 101 outStr = 110 121 101 113 outStr = nyeq

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

outStr = 121 outStr = 121 109 outStr = 121 109 106 outStr = 121 109 106 118 outStr = 121 109 106 118 122 outStr = 121 109 106 118 122 110 outStr = 121 109 106 118 122 110 104 outStr = 121 109 106 118 122 110 104 112 outStr = 121 109 106 118 122 110 104 112 103 outStr = 121 109 106 118 122 110 104 112 103 119 outStr = 121 109 106 118 122 110 104 112 103 119 116 outStr = 121 109 106 118 122 110 104 112 103 119 116 98 outStr = 121 109 106 118 122 110 104 112 103 119 116 98 115 outStr = 121 109 106 118 122 110 104 112 103 119 116 98 115 107 outStr = 121 109 106 118 122 110 104 112 103 119 116 98 115 107 116 outStr = 121 109 106 118 122 110 104 112 103 119 116 98 115 107 116 99 outStr = ymjvznhpgwtbsktc

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

outStr = 112 outStr = 112 100 outStr = 112 100 97 outStr = 112 100 97 121 outStr = 112 100 97 121 110 outStr = 112 100 97 121 110 107 outStr = 112 100 97 121 110 107 115 outStr = 112 100 97 121 110 107 115 98 outStr = 112 100 97 121 110 107 115 98 104 outStr = 112 100 97 121 110 107 115 98 104 101 outStr = 112 100 97 121 110 107 115 98 104 101 97 outStr = 112 100 97 121 110 107 115 98 104 101 97 111 outStr = 112 100 97 121 110 107 115 98 104 101 97 111 119 outStr = 112 100 97 121 110 107 115 98 104 101 97 111 119 112 outStr = 112 100 97 121 110 107 115 98 104 101 97 111 119 112 105 outStr = 112 100 97 121 110 107 115 98 104 101 97 111 119 112 105 101 outStr = Columns 1 through 16 112 100 97 121 110 107 115 98 104 101 97 111 119 112 105 101 Column 17 122 outStr = Columns 1 through 16 112 100 97 121 110 107 115 98 104 101 97 111 119 112 105 101 Columns 17 through 18 122 106 outStr = Columns 1 through 16 112 100 97 121 110 107 115 98 104 101 97 111 119 112 105 101 Columns 17 through 19 122 106 101 outStr = Columns 1 through 16 112 100 97 121 110 107 115 98 104 101 97 111 119 112 105 101 Columns 17 through 20 122 106 101 99 outStr = Columns 1 through 16 112 100 97 121 110 107 115 98 104 101 97 111 119 112 105 101 Columns 17 through 21 122 106 101 99 100 outStr = Columns 1 through 16 112 100 97 121 110 107 115 98 104 101 97 111 119 112 105 101 Columns 17 through 22 122 106 101 99 100 112 outStr = pdaynksbheaowpiezjecdp