Dropped Requests Rate Limiter

Given a non-decreasing array of request timestamps requestTime in seconds, return the number of requests that must be dropped.

A request must be dropped if accepting it would exceed any of these li...

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: