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
A reviewer audits a batch of 100 Facebook Marketplace listings, 5 of which violate commerce policy, by sampling 10 without replacement. What is the probability the sample contains at least one violating listing, and how large must the sample be for a 90% chance?
Given a list of pickup location IDs from ride requests and an integer k, return the k most frequent locations, ordered by count descending and then by location ID ascending for ties.
A server room is a grid where 0 is an open tile and 1 is a removable partition. Starting at the top left and moving in four directions, return the minimum number of partitions that must be removed to reach the bottom right tile.
Given a pandas DataFrame of card transactions and a table of merchant keyword rules with priorities, assign each spending transaction a category and return total spend per user, month and category.
The For You feed receives a batch of ranked candidate videos, each with a creator id. Reorder the batch so no two adjacent videos share a creator, keeping each creator's own videos in their original relative order, or return None if that is impossible.
Each content reviewer has a speed and an accuracy. Choose at most k reviewers to maximize (sum of chosen speeds) * (minimum chosen accuracy).
A test of a redesigned rate-check page raised the share of applicants who go on to accept an offer from 22.0% to 23.1%, with a reported p-value of 0.03. Explain what the p-value means, what it does not mean, and what else you need before recommending a launch.
Design a CloudWatch-style alarm service that evaluates millions of metric alarms every minute, supports composite alarms built from other alarms, and triggers notifications and automated actions on state changes.
Given ad delivery latency samples with irregular timestamps, compute for each sample the median of all latencies whose timestamps fall in the trailing window (ts - window, ts]. The window is defined in seconds, not in number of samples.
Given an array of daily ad spend, support update(i, value) to correct a single day and query(l, r) to return the total spend from day l to day r inclusive, both in sublinear time.
Design the feature that records who viewed each Instagram Story and shows the author a viewer list and count, including authors whose stories get millions of views within 24 hours.
A model that sorts Gmail messages into Primary, Promotions and Social is extremely overconfident and overfits noisy labels. Explain what label smoothing does to the loss, why it helps generalization, and what it does to calibration.
A city is an R x C grid of cells. Given a list of surge zones as inclusive rectangles (r1, c1, r2, c2), return how many cells are covered by at least k zones.
A large retail bank is losing small business loan share to fintech lenders who approve in minutes. Decide whether the bank should build its own digital lending platform, acquire a fintech, or partner.
Design user interest features for a news ranking model from a user's reading history, so recent interests count more than old ones and features stay cheap to update in real time.
Each team has (passed, total) code reviews. You may add extra guaranteed-pass reviews, each going to one team as +1 passed and +1 total. Distribute them to maximize the average of the teams' pass ratios.
A model routes Gmail messages into Primary, Social, Promotions, Updates, and Forums. Explain the difference between micro and macro averaged F1 for this multi-class problem and which you would report to the product team.
Estimate how many hours per year people in the United States spend with Google Maps turn-by-turn navigation active.
A row of dominoes is described by a string of 'L', 'R', and '.', where L and R are dominoes pushed at time 0. Each second a falling domino pushes its neighbor in the same direction, and a domino pushed from both sides at once stays upright; return the final row.
Given sorted camera frame timestamps and sorted lidar sweep timestamps (milliseconds), return for each camera frame the index of the closest lidar sweep if it lies within a tolerance, otherwise -1. Aim for linear time.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.