← Questions

Count words in a text stream

0
NetflixCodingLast asked Apr 2026

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.

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