Pluggable Hierarchical Rate Limiter
Implement a hierarchical notification rate limiter:
can_send_notification(user_id, timestamp, message_size=0) -> bool
A helper provides user_id -> team_id -> company_id. A notificati...
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:
