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
Meta wants a shared embedding space for Reels video and text so that search, recommendations, and integrity can use one representation. Explain how you would train it with a contrastive objective and the key design choices.
An aircraft moves on a grid one cell per step (or waits in place), terrain cells are impassable, and each enemy patrol follows a known cyclic route. Return the earliest time the aircraft can reach the goal without ever sharing a cell with a patrol or swapping cells with one in a single step, or -1 if impossible.
A 2 by 3 board holds tiles 1 to 5 and one empty square 0. A move slides a tile adjacent to 0 into the empty square. Return the minimum moves to reach [[1,2,3],[4,5,0]], or -1 if impossible.
Given requested send times for follow-up SMS messages, each recipient's UTC offset, a local quiet window of 9pm to 8am, and a cap of 3 messages per recipient in any rolling 24 hours, compute the earliest legal send time for each message while keeping each recipient's messages in order.
Meta tests a stricter spam classifier for Facebook comments, randomized by viewer. Spammers see their reach fall and change tactics, which affects control users too. Explain why the experiment misestimates the long-run effect and how you would design an evaluation.
Design the strongly consistent metadata store that maps vdisk blocks to extents and extents to physical disk locations across every node in a hyperconverged cluster, sustaining very high read and update rates while surviving node and disk failures.
Integrity reviewers want k Stories sampled uniformly at random from a stream whose length n is unknown in advance, using O(k) memory. Describe reservoir sampling and prove that every item ends up in the sample with probability k/n.
Using Pure1-style tables of arrays, phone-home heartbeats (with Purity major, minor and patch versions) and a supported release matrix per hardware model, list every array that has reported in the last 7 days whose most recent version is not supported for its model.
Given a CAN frame payload as bytes and a signal definition (start bit, bit length, signedness, scale and offset) in Intel little-endian layout, extract the physical value.
Implement a server-side idempotency layer for a POST /transfers endpoint so that a mobile client retrying with the same Idempotency-Key gets the original result, a reused key with a different body is rejected, and a concurrent duplicate does not move money twice.
Users sometimes type queries without spaces, such as 'applemusicstudent'. Given a dictionary of known words, split the query into dictionary words using as few words as possible and return them, or return None if no segmentation exists.
Design a small class hierarchy for bank accounts where savings accounts enforce a minimum balance and earn monthly interest, current accounts allow an overdraft up to a limit, and the shared withdraw method stays in the base class.
A Google Store promo pool contains coupon codes, some repeated. Return every distinct multiset (bundle) of coupons that can be drawn from the pool, with no duplicate bundles in the output.
Assume XRP Ledger close intervals are independent and uniformly distributed between 3 and 5 seconds, and a payment is submitted at a uniformly random moment. Compute the expected wait until the next ledger close and the probability that the wait exceeds 3 seconds.
A new fraud model for Meta Pay blocks more transactions. Blocked transactions never complete, so you cannot see whether they were really fraud. Design an experiment that measures the true trade-off.
Facebook Dating wants to test showing suggested icebreaker questions when a match opens a chat. Define the hypothesis, primary metric, and guardrails, and say what result would justify launch.
Design the system that captures audio of a clinical visit on a phone or workstation, transcribes it with speaker labels, generates a draft note, and delivers it into the clinician's EHR within about a minute of the visit ending, for tens of thousands of clinicians.
Given a fills table and a quotes table, compute each fill's slippage in basis points versus the prevailing mid price just before the fill, and report quantity-weighted slippage per symbol along with fills that had no recent quote.
Parents complain YouTube Kids has too little content their older kids like, so the kids move to main YouTube. Expanding the catalog increases safety risk. How do you decide how far to expand?
Using hourly view counts for each Reel, compute how many hours after publishing each Reel hit its highest-view hour, then summarize the distribution of that time-to-peak by creator follower tier.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.