LC: 362. Design Hit Counter
https://leetcode.com/problems/design-hit-counter/



Last updated
https://leetcode.com/problems/design-hit-counter/



Last updated
class HitCounter {
/** Initialize your data structure here. */
public HitCounter() {
}
/** Record a hit.
@param timestamp - The current timestamp (in seconds granularity). */
public void hit(int timestamp) {
}
/** Return the number of hits in the past 5 minutes.
@param timestamp - The current timestamp (in seconds granularity). */
public int getHits(int timestamp) {
}
}