Problem 47553. Decipher the number 2 - 3 keys
You will be given a input number (eg) x=12345
you have to figure out the dechiper keys and match it with given input and decipher it
eg x=12345
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];
---> These are not real keys , just an example
output y=25558
Hint : index : 1:3:end -> key 1
2:3:end -> key 2
3:3:end -> key 3
"If" and "while" are forbidden
Previous problem: Decipher-the-number-1-same-key-for-all-digits
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers16
Suggested Problems
-
3079 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
3660 Solvers
-
Count letters occurence in text, specific to words with a given length.
195 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2134 Solvers
-
Number of Even Elements in Fibonacci Sequence
1632 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!