Design
933. Number of Recent Calls
Implement a recent-requests counter: ping(t) records a request at time t (strictly increasing) and returns how many requests fall in the window [t-3000, t]. Because timestamps only increase, a…
Loading…
Implement a recent-requests counter: ping(t) records a request at time t (strictly increasing) and returns how many requests fall in the window [t-3000, t]. Because timestamps only increase, a…
Loading…