Unlock you code challenge

Oh hey, I’m the 1st / 152 ^_^

https://skillvalue.com/en/competitions/unlockyourcode/

Write an algorithm that analyzes and decodes a string.

The cipher works as follows: it takes the alphabet and a keyword (that shall not include duplicate letters) and builds a new string starting with the keyword and continues with the letters of the unused alphabet.

Example (the keyword in the example is KEYWORD):

Input:
– “KEYWORD” as the keyword
– String that has to be deciphered.
Output: String representing the decoded word.

Example:

For: KEYWORD and code: LXQAJI

Output is PYTHON

Leave a Reply

Your email address will not be published. Required fields are marked *