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
Two language models report token-level perplexity on the same held-out text but use different vocabularies; explain why the numbers are not comparable and convert them to a tokenizer-independent metric.
Two checkouts can try to spend the same Walmart gift card at the same moment, and network retries can submit the same redemption twice. Design the database schema and transaction logic so the balance never goes negative and each order is charged exactly once.
Design the search backend that lets a customer type a query such as 'spicy ramen' and get relevant stores and dishes that can actually deliver to their address right now, ranked by relevance and likelihood to order.
Implement a decoder for URL-safe base64 (alphabet A-Z, a-z, 0-9, -, _) as used in web tokens, accepting input with or without = padding, and rejecting invalid characters, impossible lengths, and non-canonical trailing bits.
Given per-minute CPU load samples from a Borg cell, count the contiguous windows of length at least one in which load strictly increases from each minute to the next.
Given users, deployments, and daily activity tables, compute for each weekly cohort of users (grouped by the week of their first deployment) the share of the cohort active in each of the following four weeks.
Each promotional banner on a timeline is a rectangle (left, right, height) resting on a common baseline. Return the outline as a list of [x, height] key points where the visible top edge changes height.
Tap to Pay on iPhone and Android rolled out to sellers without a randomized experiment; estimate whether it increased seller payment volume and retention, and explain how you would defend the estimate.
Mobile clients on flaky networks retry order submissions, which can create duplicate orders and double charges. Design the API contract and server logic for an idempotent place-order endpoint, including how retries, conflicting requests and in-flight duplicates are handled.
Simulate a token bucket with a given capacity that starts full and refills at r tokens per second, up to capacity. Given sorted request timestamps in seconds, each costing one token, return a list of booleans saying whether each request is admitted.
Given a road-like graph of flight corridors where each edge has a flight time and an integer energy cost, a battery capacity, and a set of nodes where a battery swap restores full charge after a fixed delay, find the minimum time to fly from source to destination without ever running out of energy.
Using a payments table of subscription charges, write SQL that groups companies by the month of their first successful payment and reports, for each cohort and each month offset, how many companies paid and what share of the cohort that is.
Given the date a container was discharged at a port terminal, the date it was picked up, a number of free days, and a list of tiered daily rates, compute the demurrage fee owed. The last tier may be open ended.
Describe a time something you built or changed caused a production problem. How did you respond in the moment, and what did you change so it would not happen again?
Each user picks 5 interest tags uniformly at random from a set of 50 during Facebook onboarding. What is the probability two random users share at least one tag, and what is the expected number of shared tags?
A Pixel test lab has one flashing station, so phones are flashed one at a time, each for a known duration; after flashing, each phone runs its own automated test in parallel with known length. Return the earliest time every phone has finished its test.
Describe a time a model or pipeline you owned degraded in production for a while before anyone noticed. What failed, and what did you change?
Explain how post-training INT8 quantization works for a convolutional or transformer model deployed with OpenVINO on Intel CPUs, including how scales are chosen, why weights are usually quantized per channel, how activations are calibrated, and how you would recover accuracy if it drops.
A shared configuration client is created lazily on first use, but under load the service sometimes builds two instances and one thread reads a half-initialized object. Explain the race and implement thread-safe lazy initialization.
Each row is an ad set's daily stats: objective, impressions, and CPM. Compute the correct average CPM per objective weighted by impressions, and show how it differs from the naive mean of CPMs.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.