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
-
7488 Solvers
-
Find state names that end with the letter A
1148 Solvers
-
Find state names that start with the letter N
1171 Solvers
-
Find perfect placement of non-rotating dominoes (easier)
350 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1009 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!