Memory-Efficient Sliding-Window Event Store

Problem

Design and implement a memory-efficient event store. Each event contains (userId, chatId, timestamp). The service continuously accepts events and supports queries by user and by a user's...

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: