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 want to train an App Store search ranker from click and download logs, but users mostly tap the top results regardless of quality. Explain how you would build an unbiased learning-to-rank setup.
Given a list of services and pairs `(service, depends_on)`, return an order in which every service is built after all of its dependencies; if that is impossible, return one concrete dependency cycle instead.
Uber Eats wants to test letting couriers carry two orders from nearby restaurants at once in more situations. Design a cluster randomized experiment and explain how you would define the clusters.
Given a sequence of end-of-day balances and a tolerance k, find the longest contiguous period in which the maximum balance minus the minimum balance is at most k. Return its length and start index.
Given device allocations as (start_time, end_time, bytes) live on the half-open interval [start, end), return the peak total bytes live at any moment and the earliest time that peak is reached.
Tell me about a time two senior leaders gave your team conflicting direction. How did you get them aligned rather than picking a side?
Raters compared a candidate video model against the current one on 1,000 prompt pairs: the new model won 432, lost 368 and 200 were ties. Decide whether the new model is better, with a confidence interval, and say what could make this result misleading.
Instagram Feed experiments often move time spent, sessions, and posting in different directions. Design an overall evaluation criterion (exchange rates between metrics) so teams can decide launches consistently.
Describe a time users or customers strongly asked for a feature and you decided not to build it, or to build something different. How did you reach and defend that decision?
Pinterest wants to test a feature that lets group board members react to and comment on each other's saves. Because the feature involves multiple users on the same board, a user-level A/B test may be biased. Design an experiment that handles this.
Ten distinct approved loans must be allocated to three lending partners. Count the allocations if every partner must receive at least one loan, then if the partners must receive exactly 4, 3 and 3 loans, and finally if the loans are treated as identical and each partner gets at least one.
Implement a small persistent key-value store for app settings that appends every write to a log file, recovers correctly if the app is killed mid-write, and compacts the file when it grows too large.
Facebook plans to retire a location feature that few users use but that costs engineering time and carries privacy risk. How would you estimate the impact on users and decide whether to proceed?
Coupang wants to test showing an explicit 'arrives tomorrow before 7 a.m.' badge on search result cards instead of only on product pages. Design the experiment, choose metrics, and explain how you would read a result where conversion rises but cancellations also rise.
Given cash deposits (account, timestamp, amount) and links between accounts that share an owner, phone or device, flag each linked group that makes at least three deposits each below the $10,000 reporting threshold whose total within any rolling 24 hour window reaches $10,000.
Explain why storing and computing payment amounts as double-precision floats causes defects, and describe how you would represent money, round it and convert between currencies in a Java or Python service.
Given a list of distinct positive integers, connect two numbers if they share a common factor greater than 1. Return the size of the largest connected group.
A delivery network has links usable only by carrier A, only by carrier B, or by both; return the maximum number of links you can remove such that both carriers can still reach every node, or -1 if that is already impossible.
An automated classifier flags 95% of videos that violate community guidelines and wrongly flags 2% of videos that do not. If 0.5% of uploads actually violate guidelines, what fraction of flagged videos are true violations?
A dataset of Chrome sessions mixes features like memory in megabytes, tab count, and page load time in milliseconds. Explain which model families need these features scaled, which do not, and which scaling method you would pick.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.