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
Given each volume's list of chunk fingerprints and a fixed chunk size, compute the array-wide deduplication ratio (logical bytes over unique physical bytes) and, for each volume, how many physical bytes would be reclaimed if that volume were deleted.
Each shuttle line loops through a list of stops across ByteDance's offices; given all lines, a source stop and a target stop, return the minimum number of distinct lines an employee must board, or -1 if impossible.
A mid-size insurer has a $50M two-year digital budget and seven candidate initiatives totaling $110M. Decide which to fund and how to sequence them.
Google Discover experiments are judged on many metrics that often disagree. Design a single overall evaluation criterion (OEC) that predicts long-term user value and explain how you would validate it.
Amazon shows customers a delivery date that should be met about 90 percent of the time. Explain how to train and evaluate a model that predicts the 90th percentile of delivery time, and implement the loss and coverage checks.
Fulfillment center drive units send heartbeat pings (robot_id, ts). In pandas, return every gap longer than ten minutes between consecutive heartbeats of the same robot, with the gap start, end and length in minutes.
Many internal Uber services call an external maps provider that bills per request. Design a quota service that gives each team a monthly budget and per-second limits, protects critical callers like dispatch, and keeps total spend under contract.
In a Facebook Feed ranking test, both the control and treatment models are retrained daily on engagement logs from all users, including the other arm. Explain how this feedback loop biases the experiment and how to design around it.
Given a pattern of letters and a string, decide whether there is a one-to-one mapping from pattern letters to non-empty substrings such that replacing each letter with its substring produces the string exactly.
Given build targets and a list of (target, dependency) pairs, return an order in which targets can be built so that every dependency is built first. If there is a cycle, return the list of targets involved in or blocked by the cycle instead.
Firebase and GA4 export events as nested JSON with a list of typed event parameters. Flatten them into one row per event with a column per parameter, converting microsecond timestamps and typed values correctly.
Tell me about a time you saw a team habit that hurt people or results and you changed it, even though the habit was popular or seen as part of the culture.
CVS pharmacists write free text notes after medication therapy reviews. Design an NLP approach to classify each note into intervention types (dose change suggested, adverse event, adherence counseling, no action) with limited labels and strict PHI handling, and compare fine-tuned encoders to prompting an LLM.
Design the serving layer behind a public LLM API that hosts a dozen models (from small edge models to large mixture-of-experts models), supports streaming, function calling and batch jobs, and enforces per-customer rate limits while maximizing GPU utilization.
Given live intervals for virtual registers as (name, start, end) and a fixed number of physical registers, assign each interval a register or mark it spilled using linear scan allocation, spilling the interval that lives longest when registers run out.
Design how Facebook groups many similar activity events (likes, comments, reactions) on one object into a single updating notification instead of sending one per event.
Given a log of (candidate, interviewer, verdict) scorecard submissions, where an interviewer may resubmit and only their latest verdict counts, return the candidates for whom strictly more than half of their interviewers recommend hire or strong hire.
Given a binary tree of UI components, return one representative root for each subtree shape-and-value pattern that occurs two or more times.
Design the in-app messaging between a customer and their shopper during an active order, including structured replacement suggestions the customer can approve or reject with one tap.
Design the backend for Amazon Photos that accepts uploads from phones, stores originals durably, avoids storing the same file twice for a user, and generates thumbnails for fast browsing.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.