Problem 49347. Cipher and Decipher the message - same key for all digits
You will be given a input number
you have to figure out the key according to the second input
ref=ascii(32:126); decipher_key=[ascii(33:126) ascii(32) ]
(eg) x='gdkkn' if y==1
output y='hello'
if x='hello' if y==2
output='gdkkn';
"If" and "while" are forbidden
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers5
Suggested Problems
-
211 Solvers
-
Project Euler: Problem 2, Sum of even Fibonacci
2156 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
374 Solvers
-
Calculate the Hamming distance between two strings
315 Solvers
-
Calculate the height of an object dropped from the sky
227 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!