Design a Hit Counter with Time Buckets
Implement a website Hit Counter that returns the number of hits received during the most recent 5 minutes (300 seconds).
Implement a HitCounter class:
hit(timestamp): Record one hit at...
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:
