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
An analyst notices that the top 5% of spenders in March spent 18% less on average in April, and proposes a retention campaign for them. Explain what is likely going on and how you would test whether there is a real decline.
Design the pipeline that turns pod and node lifecycle events across many Kubernetes clusters into accurate per-second GPU, CPU and storage usage, feeding customer invoices, reserved-commit drawdown and near real-time spend dashboards.
For weekly cohorts of Google Photos uploaders, compute both classic retention (uploaded in exactly week N after first upload) and rolling retention (uploaded in week N or any later week) in one query.
Before a Facebook Marketplace test launched, the treatment arm already had 1.5% more weekly listings in the pre-period, and the result shows a 2% lift. Explain what this means and how you would handle it.
Implement a fixed-capacity cache for map tiles with get(key) and put(key, value) in O(1). When full, evict the least frequently used tile, and among those with equal frequency evict the least recently used one.
Implement an order book for one trading pair that accepts buy and sell limit orders, matches them at price-time priority with partial fills, supports cancelling resting orders, and reports the best bid and ask.
A service moves units of a SKU between fulfillment centers by locking the source and destination, and under load it occasionally hangs. Explain the deadlock and implement a transfer that cannot deadlock.
A binary tree of candidate videos has an expected engagement score at each node. Choose a set of nodes with maximum total score such that no chosen node is the direct parent of another chosen node.
Given a block of text, return the character span of every run where the same word appears two or more times in a row separated only by whitespace (for example 'the the'), compared case-insensitively, along with the word and how many times it repeats.
Write the retry wrapper an API client uses when calling a model endpoint: retry connection errors, timeouts, 429s, and 5xx responses with capped exponential backoff and full jitter, honor the server's Retry-After header, and stop at a total deadline. Do not retry client errors like 400 or 401.
Design the system that takes a customer who starts a support chat in the Amazon app, places them in the right queue by issue type and language, and connects them to an available associate with the right skills.
Given the daily price of preemptible VM credits on Google Cloud over n days, you may buy once and later sell once. Return the maximum profit, or 0 if no profitable trade exists.
Chat messages store emoji as shortcodes like [Smile]; write a function that replaces every known shortcode with its emoji character while leaving unknown codes, stray brackets and unclosed codes exactly as typed.
Given an interviews table with interviewer, question, recommendation and completion time, find interviewer and question pairs from the last quarter where the interviewer's hire rate differs from all other interviewers on the same question by more than 15 points, with enough volume on both sides.
Given distinct gift card denominations and a target amount, return every combination (with unlimited reuse of a denomination) that sums exactly to the target, each combination listed once regardless of order.
A customer wants to roll out version 2 of their appointment-booking voice agent prompt; design the experiment and analysis that decides whether it actually books more appointments without hurting caller experience.
A driver's per-trip net earnings can be negative (fuel, tolls, or a cancelled pickup after a long drive). Given the list and a target K, return the length of the shortest contiguous run of trips whose net earnings sum to at least K, or -1 if none exists.
A new pricing algorithm increases gross bookings by 2% in a switchback test, but driver earnings per hour fall 3%. Leadership asks for a recommendation. How do you decide?
On a grid of open cells and walls, a champion moves one cell per tick in four directions, or can Flash up to k cells in any of eight directions over walls if Flash is off cooldown, which then puts it on a c-tick cooldown. Return the minimum ticks from start to goal, or -1.
In pandas, turn a long table of card purchases into one row per customer per month with spend in each merchant category and each category's share of that month's total.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.