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
The share of CVS prescriptions ready by the time promised to the patient fell from 92% to 85% over two weeks across the chain. Walk through how you would find the cause.
Given a list of post tags in upload order, build a structure whose query(prefix, suffix) returns the largest index of a tag that starts with prefix and ends with suffix, or -1 if no tag matches.
YouTube watch time per user fell 10% on Android over three days, while iOS and web are unchanged. Explain how you would investigate.
An AI answer module improves satisfaction on complex queries but adds 400 ms to page load when shown. Decide when to show it and how to evaluate the trade-off.
Given a fixed grid of item counts per shelf slot, answer many queries asking for the total count inside a rectangle (r1, c1) to (r2, c2) in O(1) per query after preprocessing.
A moderation council has members from two factions, R and D, seated in a string order. In rounds, each remaining member in seat order either bans one opposing member from all future rounds or, if no opponents remain, declares victory. Assuming everyone plays optimally, return the winning faction.
Given group engagement events (user_id, group_id, date), compute for every user and every calendar day in a range the number of distinct groups the user engaged with in the trailing 28 days (including that day), without materializing a user by day by group cross product.
Members of two code-review factions, Radiant and Dire, take turns in a fixed order; on their turn a member may veto one opponent, who loses all future turns, and rounds repeat until one faction remains. Given the seating string, return the winning faction if everyone plays optimally.
Your team built crash detection from dash cam and accelerometer data that can automatically alert a fleet's dispatcher and, optionally, emergency contacts. Decide how and whether to launch it, including what false positive rate is acceptable and what metrics define success.
Design the feature that lets creators schedule a video to publish at a future time, up to 10 days ahead, and reliably publishes it at that time.
Clients are split: some want candidates to use AI coding assistants in the first-round interview because their engineers use them daily, while others worry it hides weak fundamentals. As the PM for the interview product, what do you recommend and how do you validate it?
Design a system that detects when a Dasher has arrived at a restaurant and when they have left with the food, using phone location, so DoorDash can update the customer, alert the merchant and measure wait times accurately.
Design rate limiting for a public quote and chart data API that is called by apps, partners, and scrapers. Limits differ per plan, must apply across many API servers in multiple regions, and must not add noticeable latency.
Each host serving the product detail page must report p50, p99, and p99.9 latency every minute, and the numbers must merge across thousands of hosts. Implement a fixed-memory histogram with bounded relative error that supports merging and quantile queries.
Given a Minesweeper board of unrevealed mines 'M', unrevealed empty cells 'E', and already revealed cells, plus a click position, return the board after applying the click: a mine becomes 'X', an empty cell shows its adjacent mine count, and a zero cell reveals its neighbors recursively.
A Google Search experiment improves a user satisfaction metric by 0.8% but lowers ad revenue per query by 0.5%. How would you decide whether to launch, and what would you need to know?
Shards are labeled 1 to n, and shards x and y are directly linked if they share a common divisor strictly greater than threshold. Given many (a, b) queries, return for each whether a and b are connected through any chain of links.
Design a platform like Uber's Cadence that lets engineers write long-running business processes (driver onboarding, refund handling, trip settlement) as ordinary code that survives crashes, retries steps, and can wait for days.
Given a set of offline jobs for a ranking pipeline and their dependencies (job A must finish before job B), return a valid run order that is the lexicographically smallest among all valid orders, or report that the dependencies contain a cycle.
There are n riders and n idle drivers at integer mile markers along a single highway. Pair every rider with a distinct driver to minimize the total pickup distance, and return that minimum total.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.