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 count of online orders for each minute, return the maximum count within every contiguous window of k minutes.
A standard 52-card deck is shuffled uniformly. What is the expected position of the first ace?
You trained a model that predicts the 10-second mid-price move of an underlying from order book features and it shows very high accuracy in random k-fold cross-validation. Explain why that result is likely wrong and how you would validate it properly.
Given weekly net new followers per creator, return creators whose net new followers declined week over week for three consecutive weeks, along with the first week the condition was met, treating missing weeks as breaking the streak.
Each cell tower has a position (x, y) and a failure radius r; when a tower fails, every tower within its radius also fails, and so on. Return the maximum number of towers that can fail if you trigger exactly one.
Implement optimistic concurrency for a Calendar event update method: each event carries an etag, and an update with a stale etag must fail with a precondition error instead of overwriting someone else's change.
2n candidates are flying in for onsite loops, and exactly n must go to the Seattle hub and n to the Arlington hub. costs[i] = [seattle_cost, arlington_cost]. Return the minimum total travel cost.
Given a sampled signal as a list of numbers and a tolerance tol, return the length and index range of the longest contiguous segment whose maximum minus minimum is at most tol.
Given n services and dependency pairs (a, b) meaning b may only deploy after a finishes, return the services grouped into the fewest sequential waves where each wave deploys in parallel, or None if the dependencies contain a cycle.
Implement target encoding for a categorical feature such as a Marketplace seller's city so that no row's encoding uses its own label, with smoothing toward the global mean for rare categories.
You receive a stream of top-of-book quote updates (timestamp, exchange, bid, ask) for one option series across many exchanges. Maintain the consolidated best bid and offer and emit an event each time the market changes between normal, locked, crossed and one-sided.
Design the retrieval stage that pulls a few hundred candidate movies and shows from many streaming partners for the Google TV home screen. Explain training, negative sampling and serving with an approximate nearest neighbor index.
Given a park grid where 'R' is a restroom, '.' is an open walkway and '#' is a closed area, return a grid of the minimum number of steps from each walkway cell to its nearest restroom, using -1 for closed or unreachable cells.
Design the system behind Ads Manager's export button, where advertisers request large CSV or Excel reports of campaign performance that are generated in the background, tracked with progress, and delivered as a download link or email.
Each framework (SOC 2, ISO 27001) has requirements that are met only when all of their mapped controls are implemented, and controls are shared across frameworks. Given the implemented controls, report readiness per framework and the one missing control that would complete the most requirements.
Tell me about a time you went beyond your role to fix a problem for a customer, especially when internal rules or processes were working against them.
Describe a time a data pipeline you owned failed right before an important deadline, such as a weekly or monthly business review. How did you prioritize the fix and the communication?
Design blob storage for photos uploaded to Facebook and Instagram that serves recent hot photos quickly and keeps years of rarely viewed photos durable at much lower cost.
Orders move through states CREATED, PAID, SHIPPED, DELIVERED, plus CANCELLED and REFUNDED, under a fixed transition table. Given an interleaved event log of (order_id, new_state) tuples, return the set of order IDs that ever make an illegal transition.
Design the ML system that decides, for each Bing query, which verticals (news, images, videos, shopping, local, weather) to trigger and where to place their answer blocks on the results page.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.