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
Netflix rolled out paid sharing rules (charging for members outside the primary household) country by country rather than through a randomized test. Estimate the causal effect of the rollout on net subscriber additions and revenue, and explain how you would defend the estimate.
Comments per post on a Facebook Page have sample mean 4 and sample variance 20. Show why a Poisson model is wrong, fit a negative binomial by the method of moments, and use it to estimate the share of posts with zero comments.
Given playlist A as a singly linked list, two zero-based positions a and b with 1 <= a <= b < len(A) - 1, and playlist B, remove nodes a through b of A and splice all of B in their place.
Guests can change their RSVP to a Facebook Event many times. For each event, return the number of guests whose latest RSVP is Going, Interested, and Can't Go.
Write a buddy allocator for a 2^k byte arena that serves power-of-two blocks, splits larger blocks on allocation, and merges a freed block with its buddy when both are free.
Explain the difference between L1 and L2 regularization, why L1 produces sparse weights, and which you would use for a logistic regression that classifies products into hazmat or non-hazmat from 200,000 text features.
Given a pattern string such as 'abba' and a space-separated sequence of gestures such as 'swipe tap tap swipe', return True if there is a one-to-one mapping between pattern letters and gestures that turns the pattern into the sequence.
Tell me about something you built or launched that did not get the adoption you expected. Why did it miss, and what did you learn?
Each field in a table is either a plain value or a formula that references other fields. Return an order in which every formula can be computed, report fields that sit on or depend on a circular reference, and list which fields must be recomputed after one field is edited.
A technician climbs a ladder with n rungs taking one or two rungs per step, but some rungs are broken and cannot be stepped on. Count the ways to reach the top rung modulo 1,000,000,007.
Describe a time two important partner teams demanded conflicting things from your roadmap and you could not satisfy both. How did you decide and handle the disappointed side?
Given a city road graph where each road has a travel time and may be a toll road, find the minimum travel time from pickup to drop-off using at most `k` toll roads, or return -1 if impossible.
Orders become ready at sorted times t[0..n-1]; they must be dispatched in consecutive batches of at most cap orders. Each batch costs a fixed dispatch fee F plus w times the total wait, where every order in the batch waits until the batch's last order is ready. Return the minimum total cost.
Design a feature platform where ranking teams define features once and get consistent values both for offline training and for online serving at millions of lookups per second, including counters updated within seconds.
Design the retrieval and ranking stack that, for a user question in ChatGPT search, selects which web pages and passages to feed the model so the answer is accurate, fresh and properly cited.
Design a system that reuses attention KV cache for repeated prompt prefixes (long system prompts, shared documents, multi-turn chats) across many GPU replicas, cutting latency and cost for repeated input tokens.
Tell me about a time you found a serious problem in your own work right before a fixed deadline or release. What did you do and how did it turn out?
Tell me about a time you helped a more junior colleague whose work was not meeting the bar. What did you do and how did they develop?
Given a possibly out-of-order list of (application_id, timestamp, new_state) events and a table of allowed transitions, replay them in time order and return each application's final state plus the list of events that were rejected as invalid transitions.
Design a system that watches key marketplace metrics for every city (requests, completed trips, ETAs, cancellations, driver supply) minute by minute and alerts the right team when something is abnormal, without paging people for normal daily and weekly patterns.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.