← 返回 atlassian 的题目列表Rate Limiter
类型:online_judge
atlassian
Implement a function getRequestStatus which takes in a list of web addresses where the index represents the request time in each second. Return '200' if successful, return '429' if there are more than 5 requests for the same address within 30 seconds or more than 2 requests within 5 seconds.
Example
Input
['a', 'a', 'a', 'a', 'a', 'a']