Uber | Onsite | Implement a Rate limiter

Anonymous User
834
Mar 11, 2024
Mar 11, 2024

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 (5)