Problem 42525. Vigenere cipher - be like Sherlock Holmes!
Solution Stats
Problem Comments
-
6 Comments
you should add a test case like GrantII does in his 'divisible by X' problems...
http://www.mathworks.com/matlabcentral/cody/problems/42408-divisible-by-6
thanks for advice! done! :)
Your testsuite is still incomplete. I recommend you to include cases where Ciphertext and Key both contain upper and lower case letters
Please kindly note that your test case 3 (a='az' b='za' y_correct='zz') is wrong. If you re-score all solutions, I think none of them would pass this test case. However, you may need to re-score multiple times because ind = randi(3) does not necessarily yield ind = 3.
thanks, I missed that mistake. it should be ok right now.
"A=0, B=1, C=2, (...), Z=26"
Shouldn't Z be 25?
Solution Comments
-
1 Comment
cheater. what's the point of doing that?
Problem Recent Solvers26
Suggested Problems
-
Sum all integers from 1 to 2^n
12483 Solvers
-
Back to basics 20 - singleton dimensions
265 Solvers
-
Getting the indices from a matrix
576 Solvers
-
478 Solvers
-
332 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!