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 property's office hours and a leasing agent's list of busy intervals (which may overlap or spill outside office hours), return the start times of every free 30-minute tour slot.
Meta wants to test a redesigned Facebook login and signup page for people who are not logged in. Design the experiment, including how to randomize visitors without an account ID.
Many visuomotor policies trained from teleoperation predict a chunk of future actions instead of a single next action. Explain the problem this solves, the trade-offs it introduces, and how you would choose chunk length and execution strategy for a humanoid running a policy on embedded GPUs.
Given raw alpha values per ticker and each ticker's industry, produce portfolio weights that net to zero inside every industry and whose absolute values sum to one.
Design the messaging backend for a chat app where users belong to groups of up to 500 members and are logged in on phone, desktop and web at once, so every device sees every message exactly once and in a consistent order.
Find Facebook Marketplace sellers whose first listing was at least 30 days ago and who have created no other listing since, and report the one-and-done share by whether the first item sold.
Given customer accounts with lists of identifiers such as card fingerprints and phone numbers, group together all accounts linked directly or transitively by a shared identifier and return the groups that contain more than one account.
Each AWS service configuration version v is a bitmask where every set bit is an enabled feature flag. Given n, return a list where entry v is the number of enabled flags in version v for every v from 0 to n, in better than O(n log n) time.
Given an array of non-negative integers and a start index, from index i you may jump to i + arr[i] or i - arr[i] if it stays in bounds. Return True if you can reach any index whose value is 0.
You are asked to help the Reels team set a goal for daily watch time per user next quarter. Explain how you would forecast the baseline and decide what counts as an ambitious but credible target.
In an A/B test, the control suggestion card got 1,200 accepts out of 10,000 suggestions shown and a redesigned card got 1,300 out of 10,000. Is the difference statistically significant, and what assumption behind your test should you question?
A ledger is stored as time-ordered segment files of known sizes, and compaction can only merge two adjacent segments at a cost equal to their combined size. Find the minimum total cost to compact everything into one segment and the merge plan.
A late shipment model uses seller ID, which has millions of values. Explain how to encode it for a gradient boosted tree model using target encoding, why naive target encoding leaks, and implement out-of-fold encoding with smoothing.
An Instagram growth team ran 200 tests last half and 30 were significant at p < 0.05. Estimate how many winners are likely false and propose policy changes for the team's experimentation.
Implement `allow(key, now)` that accepts a request only if the given API key has had fewer than `limit` accepted requests in the rolling `window` seconds ending at `now`, recording accepted requests.
Contractor quotes are in a line. In each of k rounds, look at the first c and last c remaining quotes, hire the cheapest among them (ties by lower index), and remove that contractor. Return the total cost.
Advertisers upload several images, headlines and texts, and Meta assembles and picks combinations per viewer. Design the system that chooses which creative combination to show each person while learning which variants work.
Simulate the ring all-reduce used for gradient synchronization: each of n ranks holds a buffer, and after a reduce-scatter phase and an all-gather phase every rank must hold the elementwise sum. Return the results, the number of communication steps, and elements sent per rank.
You built a new detector for vendor invoice fraud. You cannot randomly leave customers unprotected, and most missed attacks are never labeled. Design an evaluation that estimates how many additional attacks the new detector catches and what it costs in false positives, and decide whether to ship it.
You process a stream of operations on n business accounts: ('merge', a, b) combines the organizations containing a and b, and ('same', a, b) asks whether a and b currently belong to the same organization. Return the answers to every 'same' query in order.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.