Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
inStr = 'doug';
shift = 10;
outStr = 'nyeq';
assert(isequal(cypher(inStr, shift),outStr))
bcc =
'abcdefghjklmnopqrstuvwxyz'
k =
4
inStr =
'noug'
k =
14
inStr =
'nxug'
k =
20
inStr =
'nxdg'
k =
7
inStr =
'nxdq'
outStr =
'nxdq'
|
2 | Fail |
inStr = 'thequickbrownfox';
shift = 5;
outStr = 'ymjvznhpgwtbsktc';
assert(isequal(cypher(inStr, shift),outStr))
bcc =
'abcdefghjklmnopqrstuvwxyz'
k =
19
inStr =
'xhequickbrownfox'
k =
8
inStr =
'xmequickbrownfox'
k =
5
inStr =
'xmjquickbrownfox'
k =
16
inStr =
'xmjuuickbrownfox'
k =
20
inStr =
'xmjuyickbrownfox'
k =
1×0 empty double row vector
|
3 | Fail |
inStr = 'thecrowfliesatmidnight';
shift = 22;
outStr = 'pdaynksbheaowpiezjecdp';
assert(isequal(cypher(inStr, shift),outStr))
bcc =
'abcdefghjklmnopqrstuvwxyz'
k =
19
inStr =
'phecrowfliesatmidnight'
k =
8
inStr =
'pdecrowfliesatmidnight'
k =
5
inStr =
'pdacrowfliesatmidnight'
k =
3
inStr =
'pdayrowfliesatmidnight'
k =
17
inStr =
'pdaynowfliesatmidnight'
k =
14
inStr =
'pdaynkwfliesatmidnight'
k =
22
inStr =
'pdaynksfliesatmidnight'
k =
6
inStr =
'pdaynksbliesatmidnight'
k =
11
inStr =
'pdaynksbgiesatmidnight'
k =
1×0 empty double row vector
|
Project Euler: Problem 8, Find largest product in a large string of numbers
196 Solvers
265 Solvers
1491 Solvers
193 Solvers
Back to basics - mean of corner elements of a matrix
236 Solvers