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 flow records sorted by timestamp as (ts, source, destination, port), flag each source the first time it contacts at least k distinct (destination, port) targets within any sliding window of W seconds, and report the timestamp at which it was flagged.
Given raw browser events from a hosted checkout page, split each browser's events into sessions using a 30 minute inactivity gap, then compute how many sessions reach each funnel step in order (loaded, details entered, submitted, payment succeeded) and the step-to-step conversion.
Tell me about a time a customer or internal launch was blocked by a problem outside your direct ownership and a deadline was close. What did you do, and how did you balance the immediate fix against the long-term solution?
Tell me about a time you helped a new teammate get ready for on-call. What did you do, and how did you know it worked?
Design a log store with `put(log_id, timestamp)` where timestamps look like `2026:11:28:23:59:59`, and `retrieve(start, end, granularity)` returning ids whose timestamps fall in the range when both bounds are truncated to the given unit (Year, Month, Day, Hour, Minute, or Second).
Design a system that ingests application logs from Meta's server fleet and lets an on-call engineer search the last few hours by service, host, severity, and free text within seconds.
Given Meta Quest+ subscriptions with start dates and optional cancellation dates, write Python that computes the Kaplan-Meier survival curve in days since start, correctly treating still-active subscribers as censored, and returns the survival probability at any day.
Using arithmetic intensity, explain why generating tokens one at a time from a large language model is limited by memory bandwidth rather than compute on a typical GPU, estimate the upper bound on tokens per second for a 70B model, and explain how keeping weights in on-chip SRAM changes the picture.
Given each participant's item subtotal in cents and the final group order total (including fees, tax and tip), split the total in proportion to the subtotals so the shares are integers that sum exactly to the total.
Design a load-shedding system for the backends that serve Facebook News Feed so that, during overload, low-priority work such as prefetch and background refresh is dropped first and user-visible feed loads keep succeeding.
Design the ledger that records every Dasher earning (base pay, tips, promotions, adjustments) and supports both weekly payouts and on-demand instant cash-out, without ever paying a Dasher twice or losing a tip.
Implement a ledger supporting `post(account, amount)`, `snapshot()` which returns a snapshot id, and `balance_at(account, snap_id)` which returns the account's balance as of that snapshot. Memory should grow with the number of posts, not the number of snapshots times accounts.
Design the accounting system that records every money movement on a platform with millions of sub-merchant balance accounts as balanced double-entry journal entries, supports real-time available balances, and produces auditable reports.
A service caches a binary search tree of document IDs. Return whether the tree is a valid BST: every node's key is strictly greater than all keys in its left subtree and strictly less than all keys in its right subtree.
You cannot force users to create a Close Friends list, and users who create one are already heavy Stories posters. Design an approach to measure the effect of having a Close Friends list on Stories posting, and compute the estimate from hypothetical results.
As a manager, tell me about a time someone on your team was not meeting the bar. How did you handle it, and what was the outcome?
Design the system that ingests inventory and lead-time updates from tens of thousands of suppliers (via API, EDI and nightly CSV feeds), keeps an availability view for over 30 million SKUs, and stops Wayfair from selling items suppliers cannot ship.
Some queens are already fixed on an n by n board, at most one per row. Count the number of ways to place the remaining queens so that every row has exactly one queen and no two queens attack each other.
Google Maps wants to show a 'Message this business' button more prominently on Business Profiles. Merchants have limited capacity to reply. Design an experiment that measures the effect on both users and merchants, and explain the interference you must handle.
Tell me about a time a customer asked for something that you believed would harm them, and how you handled it.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.