← Questions

Sliding-window request rate limiter

0
MicrosoftStripeWaymo+3CodingLast asked Nov 2026

A coding interview question asked in Amazon's coding round and at Stripe, Uber and 3 more companies, last asked Nov 2026. It tests design, queue and sliding window.

Implement a rate limiter that accepts at most limit requests in any window of ttl milliseconds. Aim for amortized O(1) time per call and O(limit) memory.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Amazon · Coding · Last asked Nov 202655 min · Usually two rounds; one is often an object-oriented design built in steps · No AI
  • Stripe · Onsite coding: debug, integrate, build · Last asked Oct 202660 min · Project editor with starter code and tests: fix bugs in an unfamiliar codebase, wire an external API spec into a service, or complete a skeleton in parts · Varies by session: some onsites have one AI-assisted session and an integration session without AI
  • Uber · Coding · Last asked Jun 202660 min · Two rounds; one is often object-oriented design (a parking lot, a meeting scheduler, an expression evaluator) · No AI, except a newer AI-assisted debugging round in some senior loops
  • Snowflake · Coding · Last asked Jun 202660 min · Live coding; senior loops may agree a small storage component together, then build it
  • Microsoft · Coding · Last asked Feb 202660 min · Ten to fifteen minutes of behavioral questions, then coding in HackerRank where you write a main and make the tests pass; usually three rounds · No AI unless the interviewer invites it; some 2026 loops add a round where you bring your own AI agent
  • Waymo · Technical phone screen · Last asked Jan 202645 min · Coding: a classic algorithm problem or an original, under-specified problem framed around self-driving

What it tests

design · queue · sliding window

Your code and the AI tutor open when you unlock this question.