Design a Concurrent Rate Limiter with Deferred Requests

Design a thread-safe rate limiter with the following requirements:

  1. Start with a single rate-limit rule, then extend the design to support multiple rules applied simultaneously.
  2. A rule can be re...

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: