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
Given a binary tree of service nodes with unique IDs and a set of IDs to decommission, delete those nodes. Return the roots of the trees that remain.
Implement a single instrument limit order book supporting add and cancel. An incoming limit order matches against the best opposite prices at the resting order's price, oldest first at each level, and any remainder rests. Expose best bid and best ask.
You receive pairs of identifiers known to refer to the same security (ticker, CUSIP, ISIN, internal id). Group all identifiers into equivalence classes and answer whether two given identifiers refer to the same security.
Given an incident window [start, end) and a list of recording segments from one officer's body camera (possibly overlapping or extending outside the window), return the sorted list of sub-intervals inside the window where nothing was recorded.
Halfway through your Instagram Stories test, another team launched a new Stories ranking change to 100% of users. Explain what this does to your experiment and how you would read the results.
Given several per-region iterators that each yield (timestamp, order_id) in timestamp order, build an iterator that yields all orders in global timestamp order without loading any stream fully into memory.
Tell me about a time your manager or team chose a technical direction you disagreed with. How did you voice your concerns, and what did you do once the decision was made?
For a Messenger group call feature, you define a user as 'fully exposed' if they and at least 75 percent of their frequent contacts are treated, and 'unexposed' if they and at most 25 percent are. Explain how to estimate the difference in outcomes between these conditions without bias.
Given a list of non-negative 32-bit device IDs, return the maximum value of a XOR b over all pairs, in better than quadratic time.
A grid contains walls 'W', spam bots 'E' and empty cells '0'. A blast placed on an empty cell clears every bot in the same row and column until a wall blocks it; return the maximum number of bots one blast can clear.
Implement a bounded in-memory write buffer keyed by logical block address where many writer threads add writes (blocking when full, with newer writes to the same LBA replacing older ones), a single flusher drains batches to the backend, and sync(seq) blocks until all writes up to a sequence number are durable.
Design a scheduler that runs thousands of customer fine-tuning jobs of very different sizes on a shared GPU fleet, maximizing utilization while keeping queue times fair and predictable.
You plot training and validation loss against training set size and epochs for a model predicting Reels watch time. Explain how to tell high bias from high variance and what you would do in each case.
Design an Android earthquake alert system that detects shaking from phone accelerometers and official seismic networks, estimates the epicenter and magnitude, and warns users in the affected area seconds before strong shaking arrives.
Overnight, the platform-wide UPI payment success rate fell from about 85% to 82% and stayed there. As the PM for payments, walk through how you would find the cause, decide what to do, and communicate with merchants.
A Facebook survey tool draws 10,000 user IDs uniformly with replacement from a pool of 50,000 eligible users. What is the expected number of distinct users invited, and what fraction of the pool is never invited?
An array has 24 flash modules protected by dual parity, each module has a 1 percent annual failure rate, and a rebuild after a failure takes 4 hours. Estimate the probability per year of losing data, and explain how rebuild time, parity level and correlated failures change the answer.
Implement a thread-safe bounded queue with blocking put and get (each with an optional timeout) for an on-host agent that ships service logs to ByteDance's log pipeline, so producers slow down instead of exhausting memory when the pipeline lags.
Given an order (SKU to quantity) and a set of fulfillment centers, each with a per-shipment cost and per-SKU stock, choose the smallest set of centers whose combined stock can fill the order, breaking ties by lowest total shipment cost, and return an allocation. Return None if the order cannot be filled.
Sierra-style pricing charges customers per successful outcome, such as a resolved conversation, rather than per seat. Design the system that decides billable outcomes, records them in a ledger, handles disputes and reversals, and produces accurate monthly invoices.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.