Rate Limiter Design

Design a rate limiter to control request flow. Limit the frequency of requests within a given time window.

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: