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
You earn v points each time you pick an order worth v, but picking it deletes every order worth v-1 or v+1 from the pool. Return the maximum total points you can earn.
Design the comments feature in Google Docs: comment threads attached to a text range that stay anchored while collaborators edit, with replies, resolve, mentions with assignments, and notifications.
A network is given as an n by n adjacency matrix and a list of initially infected machines. Malware spreads to every machine in an infected machine's component. You may clean exactly one initially infected machine before spread. Return the one whose cleaning minimizes final infections, breaking ties by smallest index.
A creator just posted a video with zero views. How should the recommendation system decide who sees it first and how quickly to scale it up?
Tell me about a time you argued against shipping something your team had worked hard on because the data or user feedback suggested it would hurt users, even though a headline metric looked good.
Implement a limit order book that supports adding limit orders (which match immediately against the opposite side under price-time priority and rest any remainder), cancelling resting orders by id, and querying the best bid and ask.
Design the classes for a usage meter that records metered events (vCPU hours, GB stored, API calls) per tenant, applies each service's pricing plan including tiered pricing, and produces a monthly invoice.
A risk engine has named calculations, each depending on the outputs of others (for example pnl depends on price and position). Return a valid evaluation order, smallest name first when several are ready, and report the calculations involved if the dependencies contain a cycle.
You are forecasting daily unit sales for each item in each store to drive replenishment. Describe the features you would build and how you would avoid leakage.
Tell me about a time you created a structure to help your whole team grow technically, not just one person. What did you build, and how did you measure whether it helped?
Given a wafer map grid where X is a failing die, . is a passing die and blank is off-wafer, find 8-connected clusters of failing dies of size at least k and return how many such clusters exist and which passing dies touch them and should be inked out as reliability risks.
A digit string was produced by concatenating integers where each is the sum of the previous two. Recover any such sequence of at least three numbers (no leading zeros, each fits in a signed 32-bit int), or return an empty list.
Two couriers start at the top-left of a grid and each moves only right or down to the bottom-right; cells hold a number of ready orders (or -1 if blocked), and an order cell's orders are collected once even if both couriers pass it. Return the maximum total collected, or 0 if no route exists.
Describe a time a design review deadlocked between two strong proposals. How did you help the group reach a decision?
Given a string of length up to a few thousand, count how many distinct non-empty substrings it has.
Zones lie on a line, and zone i already has stations[i] delivery stations. A station covers every zone within distance r. You may add k new stations anywhere. Return the largest possible minimum coverage over all zones.
Links between data centers each succeed independently with a given probability. Find the maximum probability that a packet travels from start to end along a single path, or 0 if no path exists.
Tell me about a time an experiment showed a top-line win but you believed users were being harmed, and how you argued for a different decision.
Tell me about a time you strongly disagreed with a product manager about how a pricing or fee change should be shown to customers. How did you resolve it, and what did you give up?
Design the ML system that turns a user's sentence into grammar corrections with a p95 latency under 150 ms at very high request volume, including model choice, serving infrastructure, and how you keep precision high as models are retrained.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.