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
Dozens of Facebook Feed ranking tests run at the same time on overlapping users. Explain how you would set up the experiment layers so results stay trustworthy, and how you would detect harmful interactions.
Each of k drivers has a sorted list of GPS ping timestamps; find the shortest time window [lo, hi] that contains at least one ping from every driver, returning the earliest such window on ties.
Using an events table in pandas, compute how many users who signed up reached each onboarding step (email verified, ID verified, payment linked, first buy) in order within seven days of signup, with step-to-step conversion rates per country.
A network of n servers is given as an adjacency matrix. Malware starts on a list of initially infected servers and spreads to every server in the same connected component. You may clean exactly one initially infected server before spreading starts; return the one that minimizes the final infected count, choosing the smallest index on ties.
A Maps style test paints an n by 3 grid of road tiles with three colors so that no two edge-adjacent tiles share a color. Count the valid colorings modulo 1,000,000,007.
Implement a structure that consumes order-level market data messages (add, partial execute or cancel, delete, replace with new id) and maintains aggregated quantity per price level, answering best bid, best offer, and top-N depth queries efficiently.
Given dimensions d0..dn for a chain of matrices where matrix i is d_i by d_{i+1}, find the multiplication order that minimizes total multiply-add operations, and return both the cost and the parenthesization.
Coinbase wants to test whether a 30-day free trial of Coinbase One converts better than the current 7-day trial. Design the experiment, including the primary metric, guardrails, and how long it must run.
The Facebook notifications team has a new ranking policy and wants an estimate of its effect from existing logs before running an A/B test. Explain how off-policy evaluation works here and when it can be trusted.
Design the PSN service that records trophy unlocks sent by games on console, updates each player's trophy list and progress, notifies friends, and keeps global rarity percentages current, surviving a major title's launch day spike.
Orders arrive one at a time with a dollar value. Implement a class whose next(value) call returns the average of the most recent N values (or of all values if fewer than N have arrived) in O(1) time.
Implement a reader-writer lock that allows many concurrent readers or a single writer, and guarantees that a writer waiting for the lock is not starved by a continuous stream of new readers.
A launch site has n identical drones. Search sorties arrive with a release time and a flight duration; each sortie goes to the lowest-numbered idle drone, or if none is idle, to whichever drone becomes ready first, and every drone needs a fixed recharge time after landing. Return the drone, start and finish time for every sortie.
Implement a bounded in-process cache for security reference data lookups that evicts the least recently used entry when full and treats entries older than a TTL as misses, with O(1) get and put.
Design an alert router where email, pager, and chat channels can subscribe with a minimum severity, new channel types can be added without changing the router, and one failing channel does not block delivery to the others.
A recommender trained on its own logged engagement keeps showing popular content more, which makes it even more popular. Explain why this loop forms and the modeling and system changes you would make to weaken it.
Each word a learner has studied has a last-practiced time and a half-life in days, and predicted recall is $2^{-\Delta/h}$. Return the k words with the lowest predicted recall at the current time, lowest first.
Amazon ships 10,000 orders in the current padded mailer (240 damage claims) and 10,000 in a new recyclable mailer (190 claims). Is the difference statistically significant, and what would you recommend?
Design the frontend architecture of a tablet app that service technicians use in the shop to run multi-point inspections, attach photos and videos, record measurements and recommend repairs, working reliably with poor Wi-Fi and syncing to the repair order when connectivity returns.
Tell me about a time a multi-team initiative was stuck and you stepped in to get it moving even though you were not the official lead.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.