You will be given an input number as a char (e.g., x = '1233').
You have to figure out the dechiper keys and match it with given input and decipher it
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
eg x=1233 and y=1
output =2555
if x=2555 y=2
output =1233
Hint : index : 1-> key 1
2> key 2
3 -> key 3
4-> key 4
5_> key 5
up to 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

45 Solutions

8 Solvers

Last Solution submitted on Jun 19, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...