← Questions
Count words in a text stream
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Write a class that receives text in chunks from a stream and keeps a count of how many times each word has appeared, with a method to read the count of a word (or the most common words). Handle words split across chunk boundaries and normalize case and punctuation consistently.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
