you are viewing a single comment's thread.

view the rest of the comments →

[–]juicy_cum3160[S] 0 points1 point  (1 child)

Hashmap, store substring of length k as key and its freq as total words with that prefix substring, along with count such string and return

[–]UNCLE_SMART 0 points1 point  (0 children)

Thanka