Practice questions for 300+ companies, plus questions candidates reported from their interviews.
11,534 questions · 341 companies · 1,080 reported by candidates
Showing 11,534 results
Implement a stack of edit records with push, pop, top, peekMax, and popMax, where popMax removes the most recently pushed among the maximum elements. Target O(log n) for every operation.
Your team has two note-generation models. Propose how to measure which writes better clinical notes, using offline references, clinician edits after deployment, and expert review, and explain the weaknesses of each signal.
Implement a read-write lock where many readers can hold it at once, writers get exclusive access, and waiting writers are not starved by a continuous stream of readers.
Given taxable income in cents and an ordered list of brackets (upper bound or none, and rate), return the tax owed, the effective rate and the marginal rate, using exact arithmetic so results never drift by a cent.
Design an API where developers upload a file of thousands to millions of requests, the platform processes them at a discount using spare GPU capacity, and results are returned within 24 hours.
Build a model that, at checkout, predicts the probability that a cash on delivery order will be refused at delivery (return to origin), and explain how its score should be used in product decisions such as COD eligibility or a prepaid nudge.
Design the service that sells a limited quantity deal (for example 5,000 units at 60% off, opening at 9 a.m.) to hundreds of thousands of concurrent shoppers without overselling, while keeping normal checkout fast.
Describe a time a fixed external date, such as a WWDC announcement or a hardware launch, forced you to decide what to cut, and how you protected the quality bar.
A regional delivery network is modeled as a binary tree whose root is the sort center and whose leaves are last-mile stations. Return the number of nodes on the shortest path from the root down to any leaf.
Tell me about a time a system you owned caused a problem that clients noticed. What did you do in the first hour, how did you communicate, and what changed afterward?
Design the infrastructure that runs millions of simulated and log-replay scenarios against each candidate build of the self-driving software, computes pass/fail metrics, and blocks a release when safety-relevant behavior regresses.
A strategy has five years of monthly returns with an annualized Sharpe ratio of 1.5. Compute an approximate standard error and 95 percent confidence interval for the annualized Sharpe, and explain the assumptions.
Given a dictionary of words, return the longest word that can be built one character at a time where every prefix is also in the dictionary. Break ties by the lexicographically smallest word.
Build a structure over a log of (query, count) that returns the k most frequent queries starting with a given prefix, and supports incrementing a query's count as new searches arrive.
Design a multi-tenant system that learns about every new message in customers' Microsoft 365 and Google Workspace mailboxes through provider APIs, scores it for attacks, and removes malicious messages from every affected inbox within seconds, at billions of messages per day.
From a job_postings table, produce a daily series per industry with the trailing seven-day average of new postings, filling days with zero postings, and flag days where postings fall below half of the previous seven days' average.
Tell me about a time you kept leaders and partner teams informed on a long project across teams, including when the news was not good.
Each hedge is active on a half open time interval [start, end) with a notional amount. Compute the peak total notional held at any instant and the earliest time that peak is reached.
Two users apply the same filters to a dataset in different orders, with duplicate values or overlapping ranges. Write a function that merges ANDed list and range filters per column into one canonical form, detects filters that can match nothing, and hashes the result into a cache key.
Design TikTok's search box that returns typeahead suggestions and results for hashtags, sounds and creator accounts, including fast pickup of newly trending terms.
Get the full picture with our company interview guides.