Retired
Unofficial FCC Challenge -- Basic Algorithm Scripting -- Caesars Cipher (retired)
Description:
One of the simplest and most widely known ciphers
is a Caesar cipher
, also known as a shift cipher
. In a shift cipher
the meanings of the letters are shifted by some set amount.
A common modern use is the ROT13 cipher, where the values of the letters are shifted by 13 places. Thus 'A' ↔ 'N', 'B' ↔ 'O' and so on.
Write a function which takes a ROT13 encoded string as input and returns a decoded string.
All letters will be uppercase. Do not transform any non-alphabetic character (i.e. spaces, punctuation), but do pass them on.
Remember to use Read-Search-Ask if you get stuck. Write your own code.
Algorithms
Similar Kata:
Stats:
Created | Apr 7, 2017 |
Warriors Trained | 17 |
Total Skips | 0 |
Total Code Submissions | 5 |
Total Times Completed | 5 |
Clojure Completions | 5 |
Total Stars | 0 |
% of votes with a positive feedback rating | 38% of 4 |
Total "Very Satisfied" Votes | 1 |
Total "Somewhat Satisfied" Votes | 1 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 3 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 7 kyu |