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 the per-layer compute cost of a model and k accelerators, split the layers into exactly k contiguous pipeline stages so the most expensive stage is as cheap as possible, and return that cost plus the stage boundaries.
Build a component that ingests trades (timestamp, price, quantity) in time order and answers, at any moment, the volume-weighted average price of trades in the trailing window of W nanoseconds.
Given a stream of order-level events (open, partial fill, cancel) with decimal prices and sizes, maintain the aggregated quantity at each price level and answer queries for the top N bid and ask levels. Levels whose quantity reaches zero must disappear.
A config file was partially corrupted, leaving a string of '(' and ')' characters. Return the length of the longest contiguous substring that is a well-formed bracket sequence.
Given a creator's daily like counts, return for each day how many days they must wait until a strictly higher like count appears, or 0 if it never does.
Write `compact_count(n)` that turns a non-negative count into the short label shown under TikTok videos: plain digits below 1000, otherwise one decimal place with K, M or B, truncated (never rounded up) and with a trailing `.0` dropped.
Implement a loading dock calendar where book(start, end) succeeds unless the new half-open booking would cause some moment to be covered by three bookings at once; failed bookings are not stored.
Each delivery van can carry at most two orders whose combined weight does not exceed a cap. Given order weights, return the minimum number of vans needed to carry every order.
Given a caption string and a list of index pairs, you may swap the characters at any listed pair any number of times. Return the lexicographically smallest string you can produce.
Tell me about a time you delivered everything you planned but the impact goal you were measured on did not move. What did you learn?
Design the service behind a fine-tuning API: customers upload datasets, launch LoRA or full fine-tuning jobs, watch live metrics, and get a deployable model, while jobs share a GPU fleet and survive node failures and preemption.
You need to classify customer product reviews as positive, negative or mixed. Explain what baseline you would build first, when a fine-tuned transformer is worth the cost, and how you would compare them.
Midway through pretraining a multi-billion-parameter model on thousands of GPUs, the training loss shows sudden spikes, some recovering within a few hundred steps and one that diverges; explain how you would diagnose the causes and what you would change.
Without pandas, write a Python function that left joins a list of Facebook post records to a list of Page records on page_id, keeping unmatched posts and producing one row per match.
Given workloads tagged with labels (role, app, env), allowlist rules made of consumer selectors, provider selectors and services, decide whether a single flow (source, destination, port, protocol) is allowed. Anything not explicitly allowed is denied.
Given an event log of prequalification starts, prequalified offers, applications, approvals and card activations, count how many applicants reach each step in order, where each step must occur after the previous one and activation must happen within 30 days of the prequalification start.
A user-randomized Facebook feed test is complete and shows a 1 percent lift. A reviewer asks whether interference biased it. Using only the existing data, how would you test for spillover?
Given declined charges with their decline hour, a list of retry delays, and a cap on retries the processor accepts per hour, produce the hour-by-hour retry schedule, pushing attempts to the next free hour when a slot is full.
Design a pipeline that streams every insert, update, and delete from thousands of MySQL shards into the data warehouse, so analysts get daily snapshots and near-real-time tables of product data.
Explain why predicted click-through rates for ads need to be calibrated, how you would measure miscalibration, and how you would fix it after downsampling negatives during training.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.