Design Hit Counter
Design a hit counter that records the number of hits received in the past 5 minutes (sliding window). It should support the following two functions:
hit(timestamp)- Record a hit at the given `t...
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:
