Decode a string encoded using the QWERTY shift code.
QWERTY shift code is where the message was touch typed but with an offset of one character to the right.
Only letters are encoded as the top row does not incur shifting.
(eg) "A" became "S" and "a" became "s"
"PpLlMm" became "{[:;<,"
An encoded message never contains any "QqAaZz" letters.
Illegal characters in the original message were "{[:;<,".
Decode "A-Za-z". All other characters are normal except for the Illegal characters.
Input:
encoded_str= "Upi ,odd"
Output:
decoded_str= "You miss"
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers234
Suggested Problems
-
Extract leading non-zero digit
2256 Solvers
-
Calculate the Levenshtein distance between two strings
1513 Solvers
-
Create a vector whose elements depend on the previous element
805 Solvers
-
1774 Solvers
-
1006 Solvers
More from this Author306
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!