Design a word counter for streaming text

Implement a WordCounter class to count word frequencies from streaming text.

You will receive multiple chunks of text over time. Split each chunk into words and accumulate counts. Provide a que...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: