the interviewer asked you a very large English text to count the word frequency, what algorithm should be used and how to answer it?
the interviewer asked you a very large English text to count the word frequency, what algorithm should be used and how to answer it?
go through the text and divide the word with appropriate characters (such as space punctuation). Put the words into hashmap, and then sort the hashmap.
Hadoop,MR.
you can use dictionary trees.
Previous: Element-ui paging problem