Max Unique Users in Any Time Window

Given an event list events, each event contains:

  • timestamp: an integer timestamp
  • user_id: a user identifier (integer or string)

You are also given a window size W (integer). For any time...

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: