← 返回 amazon 的题目列表Simple Rate Limiter Allowing Fixed Requests Per Second
类型:online_judge
amazon
Design a simple rate limiter. The rate limiter allows a certain number of requests to pass per second, and rejects requests exceeding this limit. Implement a class RateLimiter to control request acceptance and rejection.
Example
Input
5 1