Suggested problems

Move-to-front transform (decode)

Oct. 10, 2012, 8:54 p.m. by Maxim

Given: A encoded string $s$ of length at most 1000 numbers.

Return: Decode string of nucleotides

Sample Dataset

1 1 1 1 3 3 3 2 1 3 2
2 2 1 1 3 1 2 2 0 0 0

Sample Output

CACATGCTCAT
GCGCTCGTTTT