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
Each task has an enqueue time and a processing time. A single-threaded worker, when idle, picks the available task with the shortest processing time (ties by lower index) and runs it to completion. Return the order of task indices it processes.
During a team offsite, different employees paid for shared items, each split evenly among some participants. Compute the minimum number of person-to-person transfers needed to settle every balance.
Design the classes for a position ledger that books fills across equities, futures, and listed options, tracking quantity, average cost, realized P&L, and unrealized P&L with the right contract multipliers.
Tell me about a time a teammate repeatedly changed or rewrote code you owned without talking to you first. How did you address it?
Given a list of reel ids that may contain repeats, return every distinct ordering of the list. Identical reels in swapped positions count as the same ordering.
Given a URL such as a Google Search results link, parse its query string into a map from parameter name to the list of its values in order, decoding percent escapes as UTF-8 bytes and plus signs as spaces, and tolerating flags without values and stray percent signs.
Design the system that enforces requests-per-minute, input-tokens-per-minute and output-tokens-per-minute limits for every organization calling a hosted model API, across a globally distributed gateway fleet.
Implement a wrapper around an order placement function so that a client retry carrying the same idempotency key returns the original result instead of creating a second order, rejects reuse of a key with a different cart, and lets a failed attempt be retried.
Raters stand in a line, each with a quality score. Every rater gets at least one credit, and any rater with a strictly higher score than an adjacent rater must get more credits than that neighbor. Return the minimum total credits.
An n by n grid of p99 latencies is sorted ascending along every row and every column. Return the kth smallest value in the grid.
You are the PM for a product that lets a developer hold one USDC balance usable on any supported chain. Decide which three capabilities to build first, how you would choose between them, and how you would measure success.
Build a model that predicts when an ocean shipment will actually arrive at its destination port, updated daily during the voyage, and produces a calibrated 80 percent prediction interval. Discuss features, model choice, evaluation and how predictions change as the voyage progresses.
You train a gradient boosted model to predict each stock's 10-day forward return from daily features, and standard shuffled 5-fold CV reports an information coefficient far above what a forward test shows. Explain why and design a validation scheme that gives an honest estimate.
Implement a read-write lock where many readers can hold it together, a writer gets exclusive access, and a waiting writer blocks new readers so it cannot be starved. Explain why a plain reader-preferring lock fails under constant read traffic.
A customer checks their A/B test report in an analytics tool every day and stops as soon as p < 0.05. Explain quantitatively why this inflates the false positive rate and what the reporting product should do about it.
Bids for an ad slot arrive one at a time. Build a class that, after each new bid, returns the kth highest bid seen so far.
Design the service that records likes on Instagram posts and shows an accurate-enough like count, including posts from accounts with hundreds of millions of followers that receive millions of likes per minute.
A random sample of 400 active cardholders has mean monthly spend of 1,250 dollars with a standard deviation of 900 dollars. Build a 95% confidence interval for the population mean and explain whether the heavy skew of spend data is a problem.
Design a custody platform for banks that holds private keys for digital assets across several ledgers and signs withdrawals only after policy checks and multi-party approvals, with keys never present whole on any single machine.
A circular carousel holds organic posts (0) and sponsored posts (1). Return the minimum number of swaps of any two positions needed to make all sponsored posts contiguous, allowing the group to wrap around the end.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.