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

Stats:

CreatedAug 24, 2022
PublishedAug 25, 2022
Warriors Trained63
Total Skips13
Total Code Submissions82
Total Times Completed23
Swift Completions5
Python Completions20
Total Stars4
% of votes with a positive feedback rating88% of 13
Total "Very Satisfied" Votes10
Total "Somewhat Satisfied" Votes3
Total "Not Satisfied" Votes0
Total Rank Assessments13
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • Supodoco Avatar
Ad