Message Rate Limiter with an Acceptance-Based Window
Problem
Given messages arriving in timestamp order and a positive time window k, return a boolean array indicating whether each message is accepted or suppressed.
Rules:
- Accept the first occur...
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:
