Problem 47593. Decipher the number 3 - 10 keys
You will be given a input number (eg) x='1233'
input will be char.
you have to figure out the dechiper keys and match it with given input and decipher it
eg x=1233
ref=[0 1 2 3 4 5 6 7 8 9 ]; decipher_key_1=[ 1 2 3 4 5 6 7 8 9 0] ;decipher_key_2=[ 3 4 5 6 7 8 9 0 1 2];
decipher_key_3=[ 2 3 4 5 6 7 8 9 0 1];decipher_key_4=[ 2 3 4 5 6 7 8 9 0 1];
---> These are not real keys , just an example
output y=2555
Hint : index : 1-> key 1
2> key 2
3 -> key 3
4-> key 4
5_> key 5
upto key 10 .............................
if the number of digits exceeds 10 , 11 th digit must have the 1st key and 2nd key for 12th and so on.
"If" and "while" are forbidden
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers9
Suggested Problems
-
7504 Solvers
-
Back to basics 13 - Input variables
262 Solvers
-
Return elements unique to either input
757 Solvers
-
363 Solvers
-
1427 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!