DC10005 - Editorial
Link to the Practice Question can be found: https://www.codechef.com/DECI2020/problems/DC10005
DNA encoding, Cryptography
Write a program such that for a given message and a key, it generate the corresponding ciphertext as DNA sequence.
1.Get the ASCII code for each of the character from the given text-message.
For each pair of binary values get the DNA sequence by replacing values as 00 = A, 01 = C, 10 = G, 11 = T. Get the DNA-sequence
Encode the key using Table-1 given in the problem statement. Get the DNA-key.
Use DNA-key to encrypt the DNA-sequence using Table-2.