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 a list of offer prices in arrival order, return a list where entry i is the number of later offers strictly cheaper than offer i.
Two players each pick a three-flip pattern and a fair coin is flipped until one pattern appears. If one player picks HTH and the other picks HHT, what is the probability HHT appears first?
Design how customer crypto withdrawals are risk-checked, queued, batched, signed and broadcast, keeping most funds in cold storage while meeting withdrawal latency targets.
Implement a simplified SSD flash translation layer over B blocks of P pages: writes go out of place, overwrites invalidate the old page, and when free blocks drop to a reserve, garbage collection picks the block with the fewest valid pages, relocates them and erases it. Report write amplification.
Design a video delivery system using cache servers placed inside internet service provider networks (in the spirit of Meta's Facebook Network Appliances) so that most video bytes for Reels and Facebook Video are served from within the user's ISP.
Given cash deposit events (account, timestamp, amount), flag every account that within any rolling 24 hour window makes at least three deposits each below a reporting threshold of 10,000 whose total reaches the threshold, returning the first such window.
You are given a checkout function with a long chain of if/else branches for buy-two-get-one-free, category percentage discounts and spend thresholds. Refactor it, with tests guarding behaviour, into a design where new promotion types can be added without editing the checkout code.
Design a structure with add(name) and search(pattern), where the pattern may contain '.' matching any single character, for searching an internal member directory by partially remembered names.
Order value, items per order and seller revenue are extremely right-skewed in Amazon data. Explain which transformations you would apply for linear models, neural networks and tree models, and why.
For a customer's sequence of transaction amounts, flag every index i (i >= k) where amounts[i] is greater than factor times the median of the previous k amounts. Do it faster than re-sorting each window.
You are evaluating a new learning-to-rank model for Amazon product search offline. Decide between NDCG, MAP, MRR and precision at k, justify the choice, and explain how you would compute it from purchase and click logs.
Two days after a new rider app version rolled out, the rider cancellation rate rose from 9% to 11%. Explain how you would determine whether the release caused it and what part of it.
Given exchange rates between currencies and a flat percentage fee charged on every conversion, determine whether some cycle of conversions returns more money than it started with, and if so return one such cycle and its gain.
A log pipeline bug stripped the dots from IPv4 addresses, leaving strings like "25525511135". Return every valid dotted-quad address that the digit string could have come from, where each octet is 0 to 255 with no leading zeros.
PhonePe ran cashback on electricity bill payments for a month. Explain how you would measure whether the cashback created incremental bill payments and long-term retention, rather than paying users for bills they would have paid on PhonePe anyway.
Given two non-negative decimal numbers as strings, possibly with different numbers of fractional digits (for example "12.5" and "0.75"), return their exact sum as a canonical string without converting the inputs to numeric types.
Design the pipeline that watches dozens of blockchains for deposits to customer addresses, waits for the right number of confirmations, credits balances exactly once and handles chain reorganizations.
An array of shard IDs (duplicates allowed) must be split into contiguous chunks; each chunk is sorted on its own and the chunks are concatenated. Return the maximum number of chunks such that the result equals the fully sorted array.
Tell me about a time you had to learn a new tool or skill quickly because your team needed it. How did you learn it, and how did you share it?
Design the matchmaking service that takes millions of queue requests across regions, forms fair 5v5 ranked matches with parties and roles, and hands each match to a game server close to the players.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.