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
Midway through a Facebook Feed ranking experiment, the primary metric dropped about 10% in both treatment and control on the same day. Can you still trust the experiment, and how would you analyze it?
Implement a structure over half-open integer ranges supporting add(l, r) to mark bytes as downloaded, remove(l, r) to unmark them, and query(l, r) to check whether every byte in [l, r) is currently marked.
Design the model and serving system that decides, every few tens of milliseconds during a phone call, whether the caller has finished their turn so the voice agent can respond, balancing fast replies against cutting the caller off.
Given an undirected road graph where each edge has travel time in minutes and a toll flag, find the minimum travel time from source to destination using at most k toll edges, or -1 if impossible.
Design the ML system that suggests three short replies under an incoming Gmail message on mobile, covering candidate generation, ranking, safety, and latency.
Tell me about a time a fixed launch date (like Prime Day) could not move and you had to decide what to cut. How did you choose, and what happened?
Tell me about a time you needed several teams that did not report to you to change how they built something. How did you get them to agree, and what did you do when one team refused?
Break a stick of unit length at two points chosen independently and uniformly. What is the probability that the three pieces can form a triangle? Then answer the variant where you break once, then break the longer piece.
Without a calculator, estimate the monthly payment on a $15,000 personal loan at 18% APR over 36 months, then sanity-check it a second way and state how close you expect to be.
Given open vendor invoices (id, vendor, amount in cents, posting date) and a stream of payments (id, vendor, amount), clear each payment against the oldest open invoice of the same vendor and exact amount. Return the cleared pairs in payment order and the ids of payments that found no match.
An Amazon inbound dock receives a lot of 50 units from a vendor, 4 of which are defective. Quality control inspects 5 units at random. What is the probability the inspection finds at least one defect, and how many units should be inspected to catch a bad lot 90% of the time?
Given crash reports with device, OS build, crash signature and timestamp, collapse repeated reports from the same device and signature within 10 minutes into one incident, then report incidents, affected devices and raw report counts per build and signature using pandas.
Tell me about a time you helped a new teammate get their first change into production. How did you guide them without doing it for them?
A Messenger test of a new chat theme picker shows 3.00% of control users and 3.15% of treatment users customizing a chat (40,000 users each), with p about 0.22. Use a Bayesian expected-loss rule to make a launch call.
A Google Workspace churn model's permutation importance says that weekly active days barely matters, even though the team knows engagement drives churn. Explain how correlated features distort permutation importance and how you would get a trustworthy answer.
Given a list of listings as (listing_id, title, price), group listings that are likely the same product uploaded by different suppliers: titles that match after lowercasing, removing punctuation and filler words, and ignoring word order, with prices in the same 10 rupee bucket. Return the groups of size two or more.
Given a string that is either an integer or a bracketed, comma-separated list whose elements are integers or further lists, such as [12,[-3,[4]],[]], parse it into native nested Python lists and ints without using json or eval.
Ride requests arrive one at a time as rider IDs. Support add(rider_id) and first_unique(), which returns the earliest-arriving rider ID that has so far appeared exactly once, or None, with O(1) time per operation.
Sellers attach lowercase keyword tags to listings. Find two tags that have no letter in common and maximize the product of their lengths, returning 0 if no such pair exists.
Split new Meta advertisers by whether any ad in their first campaign was rejected in ad review, then compare the share who spent again 31 to 60 days after their first campaign started, overall and by advertiser vertical.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.