Problem 48175. Cipher or Decipher the number according to the second input - 3 keys - order [1 2 3 2 1 2 3 ......]
Solution Stats
Problem Comments
-
4 Comments
I don't understand. Isn't decyp() supposed to be called with 2 arguments? All the the test-suite problems call it with 1 argument, and therefore don't indicate whether it is supposed to cipher or decipher.
Other problems of this type (cipher/decipher from 2nd input) are called with 2 arguments.
If that was the intended way of solving this question, someone please fix the test suite.
The problem description has been cleaned up. Also, the test suite now calls the function with two inputs, as mentioned by William.
Based on a commented-out solution by Lincoln Poon, the problem appears to now be functional.
Thank you:)
Solution Comments
Show commentsProblem Recent Solvers8
Suggested Problems
-
Find the numeric mean of the prime numbers in a matrix.
8858 Solvers
-
Find state names that end with the letter A
1171 Solvers
-
Check to see if a Sudoku Puzzle is Solved
320 Solvers
-
Back to basics 13 - Input variables
265 Solvers
-
Removing rows from a matrix is easy - but what about inserting rows?
205 Solvers
More from this Author33
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!