Count words in a text stream

0
Remix

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.

NetflixTechnical phone screenLast asked Apr 2026
No answer yet. Write the first one; the best answer gets endorsed.