Counter Service with a Rolling 60-Minute Window
Design and implement a CounterService that aggregates events by minute:
bump(minute): Record one event at the specified minute.query(minute): Return the number of events in the rolling 60-...
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:
