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 list of absolute folder paths shared to a Workplace group, remove every folder that is inside another folder in the list and return the remaining top-level folders.
Build a class that records dish orders with timestamps and returns the k most ordered dishes in the last W seconds at any query time.
A document's ACL lists user and group ids. Given a user's direct groups and a map from each group to the groups it belongs to, decide whether the user can view the document, correctly handling deep nesting and membership cycles.
The team wants to test sending the second follow-up to unresponsive leads after 4 hours instead of 24 hours. Design the experiment, including the randomization unit, metrics, sample size reasoning, and how you would read the result.
Given a wholesale orders table, compute for each brand the share of retailers whose first order with that brand was placed in a given quarter and who placed a second order with the same brand within 90 days of that first order. Exclude retailers whose 90 day window has not finished.
You need a uniform random sample of k log lines from a stream of unknown length, such as a day of Search frontend logs, in one pass and O(k) memory. Describe reservoir sampling and prove each item ends up in the sample with probability k/n.
Describe a time a production issue directly hurt customers, such as campaigns under-delivering or reports showing wrong numbers, and walk through how you found it, fixed it and prevented it from recurring.
Given a list of messages as (id, subject, timestamp), group them into conversation threads by subject after stripping reply and forward prefixes such as 'Re:', 'Fwd:', and 'RE[2]:' and normalizing case and whitespace. Return each thread's message ids in time order, with threads sorted by their most recent message.
Design an ML system that predicts which UPS battery strings in customer data centers will fail or fall below runtime requirements in the next 30 days, so service teams can replace them before an outage.
Facebook Feed ranks a few hundred candidate posts per session. Compare pointwise, pairwise, and listwise training objectives and say which you would use for each stage of the ranking stack.
Bundles are written as expressions like `2(milk 3egg) bread`, where a number multiplies the SKU or parenthesized group that follows it. Given a price table in cents, return the total price, rejecting malformed input.
Design the service that takes a customer's job request (category, location, questionnaire answers) and returns a ranked list of available pros within a few hundred milliseconds, respecting pro job preferences and budgets.
Given raw events as (distinct_id, timestamp, event_name), group each user's events into sessions where a gap longer than 30 minutes starts a new session, and return each session's start, end and event count.
Each cache shard has a size. Repeatedly take the two largest shards: if equal, both are dropped; otherwise the larger shrinks by the smaller's size. Return the size of the last shard, or 0 if none remain.
Each customer has only thousands of searches per day, far too few to train a ranker per company from clicks alone. How would you build and train a learning-to-rank model for workplace search that still personalizes well to each company?
A market maker's P&L moves up one dollar with probability 0.52 and down one dollar with probability 0.48 per trade. Starting at zero with a loss limit at minus 10 and a profit target at plus 30, what is the probability of reaching the target first, and how many trades does it take on average?
You have tried 200 candidate signals on five years of daily data and the best one shows a Sharpe ratio of 2.0 in backtest. How do you decide whether it is real, and how would you set up research to avoid fooling yourself?
Given the ego vehicle and a list of tracked agents as circles with positions and constant velocities, return the agent with the earliest contact time within a planning horizon, or none.
Fanatics wants to test a homepage that leads with each fan's favorite team instead of a generic trending layout. Design the A/B test: unit, primary and guardrail metrics, sample size, duration, and how you would handle a playoff run that starts mid-test.
Tell me about a time you owned a hard, intermittent production issue that a customer escalated, where the root cause was unclear and spanned multiple components or teams.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.