Practice questions for 300+ companies, plus questions candidates reported from their interviews.
11,568 questions · 341 companies · 1,114 reported by candidates
Showing 11,568 results
Tell me about a time you had to migrate many dependent teams off an old API or system. How did you drive it to completion without being able to tell anyone what to do?
Design the object model for a parking garage at an Amazon office campus with several levels, spot sizes (motorcycle, compact, large) and vehicle types (motorcycle, car, van). Support parking a vehicle in the smallest suitable free spot, unparking by ticket, and reporting free spots per size.
Design a fixed capacity cache with O(1) get and put that evicts the least frequently used key, breaking frequency ties by evicting the least recently used among them.
Facebook, Instagram, and WhatsApp went down for about six hours worldwide. Use the outage as a natural experiment to learn how sticky user habits are and whether usage fully recovered.
Design the system that notifies client backends by webhook when a transfer to or from their wallet is seen, confirmed, or reversed, across many chains, with at-least-once delivery, retries and signing.
Savings accounts emit an event only when the balance changes. Produce one row per account per month from its first event through the current month with the month-end balance, carrying the last known balance forward through months without events.
Build the core of a marketplace order book: orders arrive one at a time as (side, price, quantity). A buy executes against the cheapest resting sells priced at or below it, a sell against the highest resting buys at or above it, oldest first at equal prices, at the resting order's price. Return the list of trades and the total resting quantity left.
Given per-second chat message counts for a broadcast, choose at most K non-overlapping windows of exactly L seconds that maximize the total number of messages covered, and return the total and the start second of each window.
Blocked users should not be able to comment on an Instagram author's posts. Using comments, posts, and a block history table with start and end times, find comments that were created while the commenter was blocked by the author.
A new Bing web ranker improved offline NDCG@10 by 1.5% on human-judged queries, but an online A/B test showed no change in click-based success metrics. Diagnose the likely causes and describe what you would do next.
Marketing wants to test a new 0% balance transfer offer against the current offer in prequalified mailings and app placements. Baseline application rate is 2.0% and they care about a lift to 2.4%. How many customers per arm do you need, and what else would you build into the test?
From a case event log, compute for each law firm and monthly cohort of first demand sent: the number of cases, how many settled, the median days from first demand to settlement, and the share settled within 90 days, only for cohorts old enough to judge.
Design the system behind Vertex AI batch prediction where customers submit jobs that run a model over millions of input rows from Cloud Storage or BigQuery, with jobs queued, split into shards, run on accelerators, and resumable after failures.
A Chrome experiment configured for a 50/50 split shows 5,021,400 clients in treatment and 4,978,600 in control. Decide whether this is a problem, and if so how you would find the cause.
Given each consultant's busy intervals for a day, a required headcount k and a meeting duration, return the earliest start time at which at least k of the same consultants are all free for the entire duration, or None.
The share of Instagram Direct messages that get a reply within 24 hours fell from 52% to 47% over three months with no clear step change. How would you diagnose a slow decline in a messaging health metric?
Each position is open over a half-open minute interval [open, close) with a notional amount. Return the maximum total notional open at any instant and the first minute at which that peak is reached.
Design a library that answers queries like how many kilometers in 3 miles, where units are registered with pairwise factors, conversions may require chaining several factors, and converting across incompatible dimensions is rejected.
Given a time-ordered list of (timestamp, joint angle) samples and a joint's soft limits [lo, hi], return every maximal contiguous window where the angle is outside the limits, with its start time, end time and peak excess. Optionally ignore windows shorter than a minimum number of samples.
Compare SGD with momentum, Adam and AdamW, explain why weight decay behaves differently with Adam, and say which optimizer you would use for fine-tuning a transformer versus training a CNN on product images.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.