Beta
Message from the past
5 of 23Supodoco
Description:
Semyon Nikolaevich Korsakov sent you a message from 1832. He figured out how to send a message to the future, but he hasn’t yet mastered the new transmission methods. We got two cards from him. The first card, as far as I can tell, has the decryption on it, and the second card has the message.
Let’s try to create two methods of encryption and decryption, so as not to leave our new friend unanswered.

You can use a preloaded dictionary called encryption. Dictionary encryption corresponds to the picture above.
- Pushing zone replaced with array "A" and "B".
- To read the symbol, you need to replace the corresponding letters and/or numbers with an empty string " " (aka hole).
- If the whole character row is in its place, it is a space in the string.
- Message length can be up to 80 characters.
Example:
[[" ", " ", "B", "B", "B"],
["A", "A", " ", " ", " "],
["0", "0", "0", "0", "0"],
["1", "1", "1", "1", "1"],
["2", "2", "2", "2", "2"],
["3", "3", " ", " ", "3"],
["4", "4", "4", "4", "4"],
["5", " ", "5", "5", "5"],
["6", "6", "6", "6", " "],
["7", "7", "7", "7", "7"],
[" ", "8", "8", "8", "8"],
["9", "9", "9", "9", "9"]] // should return "HELLO"
Algorithms
Cryptography
Similar Kata:
Stats:
Created | Aug 24, 2022 |
Published | Aug 25, 2022 |
Warriors Trained | 63 |
Total Skips | 13 |
Total Code Submissions | 82 |
Total Times Completed | 23 |
Swift Completions | 5 |
Python Completions | 20 |
Total Stars | 4 |
% of votes with a positive feedback rating | 88% of 13 |
Total "Very Satisfied" Votes | 10 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 0 |
Total Rank Assessments | 13 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |