7 kyu
Decoding a message
1,044 of 2,577samhstn
Description:
You have managed to intercept an important message and you are trying to read it.
You realise that the message has been encoded and can be decoded by switching each letter with a corresponding letter.
You also notice that each letter is paired with the letter that it coincides with when the alphabet is reversed.
For example: "a" is encoded with "z", "b" with "y", "c" with "x", etc
You read the first sentence:
"r slkv mlylwb wvxlwvh gsrh nvhhztv"
After a few minutes you manage to decode it:
"i hope nobody decodes this message"
Create a function that will instantly decode any of these messages
You can assume no punctuation or capitals, only lower case letters, but remember spaces!
Puzzles
Algorithms
Cryptography
Security
Games
Similar Kata:
Stats:
Created | Nov 30, 2015 |
Published | Nov 30, 2015 |
Warriors Trained | 4100 |
Total Skips | 56 |
Total Code Submissions | 8309 |
Total Times Completed | 2577 |
JavaScript Completions | 1044 |
Ruby Completions | 154 |
Python Completions | 1335 |
C Completions | 92 |
COBOL Completions | 8 |
Total Stars | 85 |
% of votes with a positive feedback rating | 93% of 443 |
Total "Very Satisfied" Votes | 385 |
Total "Somewhat Satisfied" Votes | 55 |
Total "Not Satisfied" Votes | 3 |