~15 min by voice
The interviewer wants to see whether you can choose a rate-limiting algorithm and explain its trade-off. Second, whether you can make refilling, checking and consuming atomic, so that a race doesn't let an extra request through. Third, whether you avoid the typical traps with time: a non-monotonic clock, losing fractional tokens, unbounded accumulation.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.
Sign in to answerBest with headphones · ~15 min