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
DoorDash wants to predict how long a restaurant will take to prepare an order so Dashers arrive just as food is ready. What features would you build, and how would you deal with the fact that true prep time is rarely observed?
A warehouse robot in a Microsoft datacenter moves on a grid of free (0) and blocked (1) cells in four directions. It may clear at most k blocked cells along the way. Return the fewest moves from the top-left to the bottom-right cell, or -1 if unreachable.
A hiring team can open two roles and has a budget B. Given a list of candidate salary asks, count the unordered pairs of distinct candidates whose combined ask is at most B.
A 50/50 test of a new DashPass upsell banner ended with 1,012,000 users in control and 988,000 in treatment. Is this a problem, and what would you do?
Design a service where customers deploy lightweight agents in offices, data centers and clouds that periodically run HTTP, DNS and network path tests against targets, and the platform shows loss, latency and hop-by-hop path changes with alerts.
A counter starts at 1 and a remote has two buttons: add one, or double the current value. Return the fewest presses needed to make the counter show exactly n.
Implement an iterator that takes k lists of trip records from regional feeds and yields records in round-robin order (first from feed 0, then feed 1, and so on), skipping feeds once they are exhausted.
Explain how rotary position embeddings encode position in Llama, why they give relative-position behaviour, and how you would extend a model trained at 8k tokens to handle much longer context.
Net deposit inflows into Capital One 360 Performance Savings fell by half over a quarter. Walk through how you would find out why and what you would recommend.
Design classes for SoFi style loan products that generate a monthly amortization schedule: a standard fixed-rate loan and a loan with an initial interest-only period. Show how a new product type plugs in without changing the schedule logic.
Return all numbers of exactly n digits (no leading zero unless n is 1) that look identical when rotated 180 degrees, using the pairs 0-0, 1-1, 6-9, 8-8, and 9-6.
Design a class for one credit card that places authorization holds against the available credit, captures them for a possibly different final amount, releases them, and expires holds that are never captured after a fixed time.
Design a system that periodically proves customer liabilities are fully backed by on-chain assets, letting each customer verify their balance was included without revealing other customers' balances.
Given a jobs table (job_id, machine_id, start_time, end_time, state) and a machines table, compute for each machine the share of a reporting window that it spent running jobs, the number of jobs touching the window, and the faulted job rate. Jobs can straddle the window edges and running jobs have a null end_time.
Tell me about a time a deadline suddenly moved earlier and you had to decide what to cut. How did you prioritize, and how did you communicate the trade-offs?
Model a card dispute as a state machine (filed, provisional credit, awaiting merchant, in review, won, lost, withdrawn). Given a dispute's day-stamped events, return its final state or the first invalid event, where a merchant that does not respond within 30 days loses automatically.
Facebook DAU and likes per user jumped in one country over three weeks, and integrity later found a large fake account campaign there. Estimate what the metrics would have been without the fake accounts and how to keep dashboards honest.
Google Maps shows an estimated arrival time at the start of navigation. Define a metric for how accurate these estimates are, and explain what to do about early and late errors.
Text from a live support conversation arrives in arbitrary chunks. Build a streaming redactor that replaces any run of 13 to 19 digits (optionally separated by single spaces or hyphens) that passes the Luhn check with [CARD], emits output as early as possible, and produces exactly the same result no matter how the text is chunked.
Rows are engineers on an on-call rotation and columns are hour slots; 1 means free. Return the area of the largest axis-aligned rectangle of all-free cells, representing the biggest block of people free together for a contiguous time range.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.