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 an unordered list of (participant, timestamp, join|leave) events for one meeting, return each participant's total time connected, counting overlapping connections from multiple devices only once and closing open connections at the meeting end time.
Given the sizes of n moderation queues and k reviewers, assign each queue entirely to one reviewer so the largest total assigned to any reviewer is as small as possible. Return that minimum possible maximum.
Given a users table with signup timestamps and an activity log of app opens, return for each signup date the number of new accounts and the share that opened the app again on the calendar day after signup.
Storage costs are rising and someone proposes cutting the free Google account storage from 15 GB to 10 GB for new accounts. Analyze the decision and recommend what to do.
You are a PM on the frameworks team and have capacity to add one major new framework next half (for example, a new EU regulation, a sector standard, or an AI governance standard). How do you decide which one, and how will you measure whether it was the right bet?
Tell me about a time you noticed a problem that was not clearly owned by any team and took it on yourself. What did you do and what was the result?
Given a list of words, find the longest word such that every one of its prefixes is also in the list; break ties by choosing the lexicographically smallest.
Design quota enforcement for CloudKit so each app's container gets request and bandwidth limits that scale with its active users, rejecting abusive traffic without hurting normal apps.
A feed page has 10 consecutive video slots and must contain exactly 3 ads, with no two ads in adjacent slots. How many placements are possible, how many if slot 1 must be organic, and what is the chance a random 3-ad placement is valid?
Design the backend for queries like "coffee near me" or "gas stations along this map view" that returns matching places within a radius or viewport, ranked, from a dataset of hundreds of millions of places.
Given a stream of price-level updates (sequence number, side, price, new aggregate size, where size zero deletes the level), output the top of book every time the best bid or offer price or size changes.
A pricing service stores product prices in what is supposed to be a binary search tree with strictly increasing inorder values. Return True if the tree really is a valid BST.
Given a rooted folder tree as a parent array and a batch of queries (a, b), return the deepest folder that contains both a and b for every query, processing all queries together in near-linear time.
Given n distinct map pins as integer coordinates, count ordered triples (i, j, k) where pin i is the same distance from pin j as from pin k.
A Feed ranking test shows a +1% average lift in time spent, but the PM worries that light users are worse off. Explain how you would test whether the effect differs across the distribution and who is harmed.
A test of an AI thumbnail picker on the Discover page shows control at 2,000 clicks on 50,000 impressions (4.0%) and treatment at 2,150 clicks on 50,000 impressions (4.3%). Is the difference statistically significant, and what would you check before trusting it?
Ten percent of analysts have real skill and are right 60 percent of the time; the rest are right 50 percent of the time. An analyst gets 8 of their last 10 calls right. What is the probability they are skilled?
Given a clicks DataFrame (click_id, user_id, product_id, click_ts, source) and an orders DataFrame (order_id, user_id, product_id, order_ts, amount), attribute each order to the most recent click on the same product by the same user within the prior 24 hours, then summarize orders and GMV by click source.
A cleaning robot sits in an unknown grid room with obstacles. Its API offers move() (returns False if blocked), turnLeft(), turnRight(), and clean(). Write code that cleans every reachable cell without knowing the map or the robot's coordinates.
Given a BST of post IDs and bounds [low, high], remove every node outside the range and return the root of the trimmed tree, preserving relative structure.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.