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
Implement a per-API-key rate limiter that enforces a tokens-per-minute budget, where each request's cost is its estimated prompt plus max output tokens, and the charge is corrected once the real usage is known.
Design the system that lets a robotaxi that is unsure how to proceed (a blocked lane, a construction zone, an officer directing traffic) request help from a remote human operator, who sends high-level guidance such as a suggested path while the vehicle keeps responsibility for safe driving.
Implement a per-API-key rate limiter for an LLM inference endpoint where each request costs a variable number of tokens, supporting try_consume(key, cost, now) and retry_after(key, cost, now).
Build an in-memory key-value store with set, get, delete, and count-by-value, supporting nested begin, rollback, and commit with efficient memory use.
You hold some API credits and a bag of quota tokens with values. Playing a token face up costs its value in credits and gains 1 score; playing it face down costs 1 score and returns its value in credits. Each token is used at most once; return the maximum score reachable.
Tell me about a time many data pipelines or jobs failed at once and you had to choose what to restore first. How did you rank them and keep consumers informed?
Tell me about a time a hard launch date could not move and the scope did not fit. How did you decide what to cut, and how did you communicate it?
A background job sends 24 hour and 1 hour reminders to candidates and interviewers, but it is retried on failure and may run on two workers at once. Write code that ensures each reminder is sent once, survives worker crashes, and explain the guarantees.
A network has n servers and undirected links [u, v, latency]; multiple links between the same pair are allowed. For each query [p, q, limit], return whether p can reach q using only links with latency strictly less than limit.
Admins write routing conditions like `amount >= 50000 AND (vendor.risk == 'high' OR NOT category == 'software')`. Write a tokenizer, a parser that respects NOT > AND > OR precedence, and an evaluator that runs a compiled rule against a request dictionary with nested fields.
Design the pipeline that accepts files users attach in ChatGPT (PDFs, spreadsheets, images, slides), scans them, extracts text and structure, and makes them usable by the model within seconds.
DoorDash trains a model to flag refund abuse, which affects 0.5% of refund requests. The team kept only 2% of negatives during training, and now the model's scores look far too high in production. Explain why and fix the calibration.
A new Google Search unit for flight status appears on less than 1% of queries. Explain why the overall experiment shows no effect and how to analyze only the affected traffic correctly.
While streaming generated text to a client, enforce a list of stop strings so that no character of a matched stop string is ever sent, even when a stop string is split across several decoded deltas. Emit everything else as early as possible.
Fraud occurs in 0.5% of new Coinbase accounts. A model flags 90% of fraudulent accounts and 3% of legitimate ones. What is the probability an account is fraudulent given one flag, and given flags from two independent models with the same rates?
Implement a sub-allocator over one large device buffer with malloc(nbytes) returning an aligned offset using best fit, and free(offset) returning the block and merging it with adjacent free blocks.
Build a prefix search over listed assets that matches either the ticker or the start of any word in the asset's name, returning the top k results by market cap for each keystroke.
Write SQL that lists evidence files whose agency and category retention period has elapsed, excluding files already deleted, categories kept indefinitely, and any file linked to a case that is still open.
The TikTok app was downloading a video file for offline viewing when the connection dropped, leaving some byte ranges received. Given the file size, the received ranges and a maximum request size, produce the HTTP Range headers needed to fetch exactly the missing bytes, and explain the networking around it.
A shuffled deck has r red and b black cards. You flip cards one at a time, winning $1 for each red and losing $1 for each black, and may stop at any time. Find the value of the game for 2 red and 2 black, describe the optimal strategy, and discuss a full 26 and 26 deck.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.