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
Ad impression events are ingested with retries, so the same impression_id can appear several times. Write SQL that deduplicates them and returns, for one campaign and week, how many users saw the ad 1, 2, ..., 9, and 10+ times.
Design how Meta serves mutual friend counts and a few sample mutual friends on profiles, friend requests, and People You May Know, where computing intersections of large friend lists on every view is too expensive.
Given audit events of (user, timestamp, action, file_id), return each user who downloaded at least N distinct files within any sliding window of W seconds, with the first window where it happened.
Given n, generate every string of n pairs of parentheses that is balanced, for use as structured test input to a parser fuzzing harness.
The Instagram Explore team wants to add a one-question satisfaction survey as a test metric, but only about 3% of users who see it answer. Design how to use it in experiments without biased results.
A parent order of Q shares must be split across T time buckets where executing x shares in bucket t costs a_t x + b_t x^2 / V_t and at most cap_t shares fit in the bucket; return the integer allocation that minimizes total cost.
Describe a time your customers were other engineers, such as users of an internal framework, build system, or API, and how you improved their experience.
Drivers and pickup points sit at integer positions on a straight highway. Each driver moves one unit per second and can change direction freely; drivers move in parallel. Return the minimum time T so every pickup point is visited by some driver.
TikTok LIVE lets viewers send paid virtual gifts to creators during streams. Propose a north star metric for the gifting business and the supporting metrics you would track beneath it.
Design a ring buffer for a low-power sensor hub with a fixed capacity that overwrites the oldest sample when full, supports popping the oldest sample, returning the latest k samples, and returning the mean of the latest k samples in O(1). Track how many samples were dropped by overwrite.
Describe a time a change you shipped caused a production incident, how you handled it in the moment, and what you changed afterwards so it would not happen again.
Given a binary array where 1 means an ad impression was clicked and 0 means it was skipped, return the length of the longest contiguous window with the same number of clicks and skips.
A jar holds 100 coins, one of which is double-headed and the rest fair. You draw a coin at random and flip it five times, getting five heads. What is the probability you hold the double-headed coin, and what is the probability the next flip is heads?
Describe a time you convinced other frontend teams to accept performance limits on a shared web surface where you had no authority over their code.
Given time-ordered telemetry samples of (timestamp, engine_on, speed) from a vehicle gateway, return the total idle time and the list of idle periods lasting at least two minutes. Do not count time across gaps in the data longer than five minutes.
Tell me about a time your analysis led to a conclusion that a senior stakeholder did not want to hear, how you presented it and what happened.
Six distinct Uber Eats orders must be assigned to three distinct couriers so that every courier gets at least one order. How many assignments are possible, and how does the count change if each courier can carry at most two?
Build the booking check for a single Outlook conference room: each request is a half-open interval [start, end), and it is accepted only if it overlaps no booking already accepted.
Suppose 10% of strategy ideas have real edge; a backtest flags a real strategy 80% of the time and a useless one 5% of the time. Given a strategy passed, what is the probability it is real, and what if it passes two independent tests?
Tell me about a time you argued hard for a technical position, the team went another way, and you later realized they were right.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.