Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
inStr = 'doug';
shift = 10;
outStr = 'nyeq';
assert(isequal(cypher(inStr, shift),outStr))
|
2 | Pass |
%%
inStr = 'thequickbrownfox';
shift = 5;
outStr = 'ymjvznhpgwtbsktc';
assert(isequal(cypher(inStr, shift),outStr))
|
3 | Pass |
%%
inStr = 'thecrowfliesatmidnight';
shift = 22;
outStr = 'pdaynksbheaowpiezjecdp';
assert(isequal(cypher(inStr, shift),outStr))
|
1726 Solvers
15296 Solvers
Make a random, non-repeating vector.
2797 Solvers
Longest run of consecutive numbers
1654 Solvers
Flip the vector from right to left
2667 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!