Rosalind - k-Mer Composition

rosalind

Problem:

Please find the problem here

Solution:

To produce the array, slide a window of width 4 from the leftmost to the rightmost of the string. When processing a window, we quickly compute the k-mer index as a base 4 number. 

Code: