Rubrik | System Coding | Design a Rate limiter

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2022-01-07Added By Anonymous
Source: Link

YOE: ~6.5 years


Location: Bangalore


Approached via a recruiter on LinkedIn, and Interview was scheduled.


Interview:

It was 1 hour long.

The first question was to design a class for rate limiter with leaky bucket algorithm. The class interface was given.


After that, I was asked to design a BadPwd rate limiter like we have on android phones. The interviewer hinted to use map where I can keep previous question leakyBucket mapped with the user.

Comments