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
TikTok is adding hashtag search for a language whose alphabet order is unknown to you. Given a list of hashtags already sorted in that language's order, return one valid ordering of all characters that appear, or an empty string if the input is inconsistent.
Given hotel listings as (listing_id, name, city) from multiple supply partners, return groups of listing ids that are likely the same property: same city (case and whitespace insensitive) and the same name after lowercasing, stripping punctuation, dropping filler words like "the" and "hotel", and ignoring word order.
Roll a fair six-sided die repeatedly. What is the expected number of rolls until you see two sixes in a row, and how does the answer generalize to n consecutive sixes?
Drivers whose average rating falls below a city threshold get a warning and are later reviewed. Use this rule to estimate whether the warning causes drivers to improve their service.
Tell me about a time you migrated a shared data asset that many other teams depended on. How did you plan it, get everyone to move, and avoid breaking them?
Tell me about a time you designed or changed a tool for operational users, such as warehouse associates or drivers, by observing how they actually worked.
Given a list of vendor payments with id, vendor, amount, day number and free-text invoice number, return every pair of payments that is likely a duplicate: same vendor and amount within a 7 day window, or same vendor and the same invoice number after normalization.
A $5-off promotion test showed a small average lift in orders. DoorDash wants to send it only to customers it would actually move. How would you estimate who responds and decide whom to target?
Given per-exchange lists of trades already sorted by (timestamp, sequence number), produce one consolidated stream ordered by timestamp, breaking timestamp ties by a fixed exchange priority and then by sequence number.
Given a product's daily prices on Amazon, return a list where entry i is the number of days you must wait after day i for a strictly higher price, or 0 if no later day is higher.
Given opening balances and an unsorted list of (account, date, amount in cents) postings, return for every account the first date whose end-of-day balance is negative.
Vendor records imported from bills, cards and the ERP contain duplicates. Two records are the same vendor if they share a tax id or any billing email, directly or through a chain. Return the merged groups of record ids.
Design an ML system that detects when an Instagram account has been taken over, both at login and in the minutes after, and triggers the right protective action. Cover signals, models, actions and the recovery loop.
TikTok runs many feature experiments, and some can only launch after others finish. Given experiment IDs and prerequisite pairs (a, b) meaning a must launch before b, return a valid launch order, or report the experiments involved in a cycle.
Given sessionized Instagram events, compute for each Story ad campaign the share of impression sessions that had a swipe-up and the share of swipe-up sessions that ended in a purchase later in the same session.
Design the system behind a liquidation address: a per-customer deposit address on several chains where any supported stablecoin received is detected, confirmed, converted and paid out automatically to the customer's bank account or another wallet.
You are building a model that predicts whether a Prime member will cancel in the next 30 days. Describe how you would construct training examples and features with point-in-time correctness, and identify which tempting features would leak.
Given hourly query counts per country, flag hours whose traffic deviates strongly from the same hour of the week in the previous four weeks, using a z-score with a floor on the standard deviation.
Design the system that delivers event notifications (such as `payment_intent.succeeded`) to millions of merchant webhook endpoints, with retries over days, signing, and protection against slow or failing endpoints affecting everyone else.
You roll a fair six-sided die and are paid its face value in dollars, but you may reroll up to n times and must keep the last roll. Find the optimal strategy and fair price for n = 1 and n = 2, then generalize.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.