renovated2020's blog

By renovated2020, 11 years ago, In English

What is the most efficient algorithm or approach for finding most frequent k-length sub-string from a given string?

  • Vote: I like it
  • -4
  • Vote: I do not like it

| Write comment?
»
11 years ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

Hash all substrings of length K in O(N) and store this values in map O(NlogN)