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:)
Select every other element of a vector
21425 Solvers
Given two strings, find the maximum overlap
477 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
4240 Solvers
Edges of a n-dimensional Hypercube
67 Solvers
Is this triangle right-angled?
2656 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!