You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good morning! Here's your coding interview problem for today.
This question was asked by Riot Games.
Design and implement a HitCounter class that keeps track of requests (or hits). It should support the following operations:
record(timestamp): records a hit that happened at timestamp total(): returns the total number of hits recorded range(lower, upper): returns the number of hits that occurred between timestamps lower and upper (inclusive)
Follow-up: What if our system has limited memory?
The text was updated successfully, but these errors were encountered:
Good morning! Here's your coding interview problem for today.
This question was asked by Riot Games.
Design and implement a HitCounter class that keeps track of requests (or hits). It should support the following operations:
record(timestamp)
: records a hit that happened at timestamptotal()
: returns the total number of hits recordedrange(lower, upper)
: returns the number of hits that occurred between timestamps lower and upper (inclusive)Follow-up: What if our system has limited memory?
The text was updated successfully, but these errors were encountered: