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
Design the pipeline that accepts video uploads to YouTube, transcodes them into many resolutions and codecs, and makes them playable as quickly as possible.
Given a red packet total in cents and a recipient count, return a random split where every recipient gets at least one cent, the shares sum exactly to the total, and no early grabber can drain the packet.
Design the control plane that places model replicas onto GPU capacity spread across several cloud providers and regions, honoring customer constraints such as region or data residency, while maximizing availability and keeping cost low. Include how it reacts when a provider runs out of GPUs or a region fails.
Given two binary grids of equal size, grid1 (old survey) and grid2 (new survey), count the islands in grid2 for which every land cell is also land in grid1.
A credit card account has several balance segments (purchases, a promotional balance transfer, a cash advance), each with an APR, a balance and a minimum due. Allocate a customer's payment by covering minimums first and then applying the excess to the highest-APR balance first.
Given a 32-bit ballot mask where bit i is set if lane i of a warp has a true predicate, return the number of set lanes, the lowest set lane (the leader), and for each set lane its rank among set lanes counting from lane 0.
Totes ride a circular carousel in a fixed order with weights w[0..n-1]. For each tote, return the weight of the first strictly heavier tote encountered moving forward around the loop, or -1 if none exists.
Given service names and pairs (a, b) meaning a must be deployed before b, return a deployment order that respects all constraints and is lexicographically smallest, or an empty list if a cycle makes rollout impossible.
DoorDash suspects that long waits at restaurants cause Dashers to quit. Dashers with long waits also tend to dash in busy areas at busy times. How would you estimate the causal effect of wait time on churn?
During a holiday promotion each customer i needs a gift box of size at least need[i], and the warehouse has boxes with sizes box[j], each usable once. Return the maximum number of customers who can each receive one suitable box.
A Meta team of n people draws names from a hat for Secret Santa. What is the probability nobody draws their own name, what is the expected number who do, and what happens as n grows?
Threads tests a new flow that lets users invite contacts who are not yet on the app. Define the viral coefficient for this flow, show how to estimate it from the experiment, and explain why the treated arm alone does not capture all of it.
Implement an in-memory key value store supporting set, get, delete, count of keys holding a value, and nested transactions with begin, rollback of the innermost transaction, and commit of all open transactions.
Customers contacting Google One support arrive at given times with known handling durations. There are k agents; an arriving customer goes to the lowest-numbered idle agent, otherwise waits in a first-in first-out queue for the first agent to become free. Return each customer's assigned agent and the average wait time.
Given a list of peer-to-peer transfers (sender, receiver, amount), find every group of two or more accounts where money above a threshold can flow around in a cycle, and rank the groups by total internal flow.
Tell me about a time you had more critical work than you could finish before a hard deadline, how you decided what to drop or delay, and how you communicated it.
Implement a volume extent map where write(start, length, segment, offset) maps a logical block range to a location in a log-structured segment, splitting and replacing any overlapping extents, and read(start, length) returns the ordered pieces including holes, merging extents that become physically contiguous.
Tell me about a time your project lost budget, headcount, or infrastructure mid-flight and you still had to deliver. How did you decide what to keep, what to cut, and how to do more with less?
After the latest iOS release, comments per video jumped 15% in one day while other engagement stayed flat. How would you figure out whether this is real growth?
A circular carousel has slots marked 1 (bin holding Prime-eligible items) or 0. Return the minimum number of swaps of any two slots needed to make all the 1s contiguous somewhere around the circle.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.