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
You roll a fair die and are paid the face value in dollars, but after seeing the first roll you may reroll once and take the second result instead. What is the fair price of this game, and what is your strategy?
The team built a redesigned page where service customers approve recommended repairs from a text message link. Design the experiment to measure whether it raises approved repair revenue per repair order, given that randomization by customer, advisor or dealership each has problems.
Tell me about a time you found a bug close to a release or freeze and had to decide whether to push an emergency fix or wait. How did you weigh it?
Given an m x n grid of numeric cells where 0 marks a cell in error, set the entire row and column of every original 0 to 0, modifying the grid in place with O(1) extra space.
Given a status update as a mutable list of characters with possible leading, trailing, and repeated spaces, reverse the order of the words in place so the result has single spaces between words and no leading or trailing spaces, returning the new length.
A board of 'X' and 'O' cells represents territory in a strategy game. Flip every 'O' region that is fully surrounded by 'X' (not 4-connected to any border 'O') to 'X', in place.
Explain why running a feature computation as a vectorized operation over a column batch is much faster than calling a Python function once per row, and when a resolver cannot be vectorized.
Tell me about a time an issue spanned several teams and nobody owned the full picture. How did you lead the review and get the follow-up work done?
Design and justify a model that forecasts the total half-hourly electricity demand of a fast-growing retail customer book for tomorrow, so the trading desk can hedge day-ahead, and explain how you would evaluate it.
Given a speech-to-text transcript string, decide whether it reads the same forwards and backwards when you ignore case and every character that is not a letter or digit.
Each service in a release lists the services it depends on, which must be deployed first. Return a valid deployment order that is lexicographically smallest, or report the services trapped in a dependency cycle.
Given a day's list of obligations between Remitly entities and payout partners (payer, payee, amount), compute the minimum number of transfers needed to settle every net balance.
Each node in a binary tree has an integer weight that may be negative. Return the largest sum over all paths, where a path is any sequence of adjacent nodes with no repeats and contains at least one node.
For a decoder-only Transformer with given model width, feed-forward width, and layer count, derive the parameter count and the forward-pass FLOPs per token, and check the result against a known model size.
Given unsorted (user_id, timestamp) generation events, split each user's events into sessions whenever the gap between consecutive generations exceeds 30 minutes, and return each user's session count and the most generations in a single session.
Design the caching layer behind Amazon product detail pages so it keeps serving fast, mostly fresh pages when Prime Day traffic spikes 10x and a few hot deals take a disproportionate share of reads.
Given experiment assignments and Ads Manager events, compute for each variant the share of assigned advertisers who opened campaign creation, set a budget, and published a campaign after their assignment time.
A new user onboarding flow has n steps and constraints [a, b] meaning step a must come before step b. Return all orderings of the steps that satisfy every constraint, so product can review each possible flow.
Build a booking class for a single vehicle inspection bay. book(start, end) reserves the half-open interval [start, end) and returns True, unless it overlaps an existing booking, in which case it returns False and stores nothing.
You can repeatedly bet any fraction of your bankroll on a coin that pays even money and lands in your favor with probability 0.6. What fraction maximizes long-run growth, and what happens if you bet more?
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.