Recent Message Counts by User and Chat

Problem

Implement a streaming log counter. Each log contains a user_id, a chat_id, and an integer timestamp measured in minutes.

Provide two methods:

  • `process(user_id, chat_id, timestamp)...

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: