Uber | Onsite | Implement a Rate limiter

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-03-11Added By Anonymous
Source: Link

Company: Uber

Interview Stage: Onsite


Original Post Content:


Recently this question was asked in Uber Onsite. Can someone please help solving this question?


Every request comes in with a customerID, implement this method boolean rateLimit(int customerId).

Allow X requests in Y seconds.

Comments