Practice questions for 300+ companies, plus questions candidates reported from their interviews.
11,534 questions · 341 companies · 1,080 reported by candidates
Showing 11,534 results
Tell me about a time you disagreed with a product decision that a more senior person had already committed to publicly. How did you raise it, and what happened?
Seller-uploaded description templates use parentheses that may be unbalanced, and may contain other characters. Return every distinct string obtainable by removing the minimum number of parentheses so the result is balanced.
A pipeline keeps a 1% Bernoulli sample of users (hashed by user ID) and observes 21,000 active users in the sample today. Estimate total DAU, give its standard error, and explain why hashing by user beats sampling 1% of events.
Daily players of Facebook Instant Games on Android dropped 22% within a day of a mobile WebView update. iOS is fine. What is your triage plan?
Given an orders table with retailer, shipped date and amount, and a payments table of amounts paid per order, write SQL that lists every retailer with an outstanding balance past its net 60 due date as of a given date, along with the overdue amount and the oldest days past due.
Roku tests adding a sponsored content tile to the home screen. Ad revenue per household rose 4% in the treatment, but streaming hours fell 0.6%. How do you analyze the experiment and make a recommendation?
Given a polygon geofence and a time-ordered list of GPS pings for one vehicle, emit ENTER and EXIT events, accepting a state change only after a configurable number of consecutive pings agree.
Given flights (from, to, price) between n airports, a source, a destination, and a maximum number of stops k, return the cheapest total price using at most k intermediate stops, or -1.
A device stores watch history as a singly linked list. Reverse the nodes in consecutive groups of k in place, leaving a final group with fewer than k nodes in its original order, using O(1) extra memory.
Copilot for Microsoft 365 is sold as a paid add-on. Leadership asks whether to keep it separate, bundle it into existing plans with a price increase, or offer a lighter built-in version. What do you recommend?
Design the pipeline that ingests ad impression and quartile beacons from millions of streaming devices, deduplicates them, detects invalid traffic, and produces impression counts that advertisers are billed on, both in near real time and as a final daily figure.
Two threads may transfer money in opposite directions between the same pair of accounts at once. Write a transfer function that locks both accounts, keeps total balance conserved, and can never deadlock.
A daily budget pacing error moves up or down by one unit each step with equal probability, starting at zero. What is the expected number of steps until the error first reaches plus or minus N, and from a starting point i between 0 and N, how long until it hits 0 or N?
Given a stream of task completion durations for one contributor, flag index i when its duration is more than factor times the median of the previous k durations. Achieve O(log k) per update rather than resorting each window.
A build has tasks with durations and prerequisite edges forming a DAG. K identical workers run tasks; whenever a worker is free, it takes the ready task with the smallest id, and a task becomes ready when all its prerequisites finish. Return the time the whole build finishes and each task's start time, or -1 if there is a cycle.
You start with capital w and may complete at most k projects. Project i requires capital[i] to start and adds profit[i] to your capital when done. Choose projects to maximize final capital.
Given an undirected tree with n nodes, return an array where answer[i] is the sum of distances from node i to every other node.
Tell me about a time you helped a non-technical or less experienced partner understand data or experiment results better. How did you teach them, and what changed?
For each day in the last 60 days, count Instagram creators who have posted at least once before but have gone 14 or more days without posting as of that day. Build the daily series without scanning every creator for every day.
Tell me about a time feedback in a technical review showed you were missing an important skill. How did you go about learning it?
Get the full picture with our company interview guides.