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
An Outlook offline address book index is supposed to be a binary search tree keyed by contact ID with no duplicates. Given its root, decide whether it truly satisfies the BST property.
Design and implement a paginated listing endpoint for an iCloud Drive folder that returns consistent pages even while files are added or deleted between requests.
Customers sometimes type search queries without spaces, like "wirelessearbudscase". Given a set of catalog keywords, return one way to split the query into keywords, or None if no split exists.
Design a pool of phone numbers 0 to n-1 with `get()` returning the smallest available number (or -1 if none), `check(num)` returning whether it is free, and `release(num)` returning a number to the pool.
Given a long table of daily stock returns and market returns, compute for each stock a rolling 60-day market beta using only data available before each day, and the resulting beta-hedged residual return, in vectorized pandas.
An underwriting pipeline has named checks and a list of (before, after) dependencies. Return the lexicographically smallest order that respects every dependency, or report the checks involved if the dependencies contain a cycle.
A maintenance bot must visit every one of up to 12 servers connected by an undirected, unweighted network graph. It can start and end anywhere and revisit nodes and edges. Return the length of the shortest such walk.
InMail batches must be sent in a fixed order; batch i has size w[i] and a batch cannot be split across days. Given D days, find the minimum daily send capacity so that all batches are delivered within D days.
A configuration update starts at one host and propagates along directed links, each with a transmission delay in milliseconds. Return the time until every host has received it, or -1 if some host can never receive it.
Design a platform that computes and aggregates sensitivities and VaR across all trading desks intraday, so risk managers can see exposure by desk, legal entity, currency and risk factor within minutes of trades being booked.
Google Play gift cards come in a fixed set of denominations with unlimited supply. Return the fewest cards that sum exactly to a balance of A, or -1 if it cannot be done.
Driver referrals form a binary tree where each driver refers at most two others. Return the driver IDs you would see looking at the tree from the right side, one per level from top to bottom.
A route is a list of (street_name, length_m) segments in driving order. Collapse consecutive segments on the same street into one instruction with the total length, keeping later returns to a street as separate instructions.
Given app install records and daily activity records for Amazon Music, write a pandas function that returns day-N retention (active exactly on day N after first install) for N in 1, 7, 14 and 30, counting only users whose day N is observable.
Tell me about a time a client stakeholder pushed for a significant scope change in the middle of an iteration. How did you respond, and what happened to the delivery commitment?
A new Night Sight mode ships to Pixel phones through a staged over-the-air rollout. Explain how to measure its effect on camera usage when the rollout order was not fully random.
Uber Eats order events (order_id, status, timestamp) arrive out of order from several services. Replay each order's events in timestamp order through a state machine that allows forward jumps but ignores backward moves and cancellations after pickup, and return each order's final status and the number of ignored events.
Tell me about a time you were under pressure to hire quickly and had to decide whether to lower your hiring bar.
Research jobs repeatedly read fixed-date blocks of a large stock-by-date data matrix from disk. Implement a cache that keeps recently used blocks in memory under a total byte budget, evicting least recently used blocks, and discuss where this design breaks.
Group each user's Facebook Search queries into search sessions (a new session after five minutes without a query or click), then report the share of search sessions that ended with a result click and the average number of queries per session.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.