July 29, 2015, 1:08 a.m. by Rosalind Team
Given an integer k, we define the frequency array of a string Text as an array of length 4k, where the i-th element of the array holds the number of times that the i-th k-mer (in the lexicographic order) appears in Text (see Figure 1.
Generate the frequency array of a DNA string.
Given: A DNA string Text and an integer k.
Return: The frequency array of k-mers in Text.
ACGCGGCTCTGAAA 2
2 1 0 0 0 0 2 2 1 2 1 0 0 1 1 0