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)
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.