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 heap snapshot of objects, their outgoing references, and the set of root references from stacks and globals, find objects that reference counting would never free but that are unreachable from any root.
A crash dump of a WPF visual tree recorded node IDs in preorder and in inorder, all unique. Reconstruct the original binary tree.
Seller A has 19 positive ratings out of 20 and seller B has 1,840 positive out of 2,000. Explain why ranking by raw positive share is wrong and use the Wilson score lower bound to rank them for Facebook Marketplace search.
Model a money transfer that moves through created, funding, funded, compliance hold, sent to partner, paid out, failed, refunding, refunded, and cancelled, rejecting illegal transitions and safely ignoring replayed events.
You have 24 months of monthly statement data and daily transactions for existing cardholders. Propose features for predicting 12-month default, explain how you would build them without leakage, and say which you expect to matter most.
Given a list of daily SLA compliance percentages for a managed-services contract (None for days with missing data) and a target threshold, return the length and start index of the longest run of consecutive compliant days.
A warehouse floor is a grid of 0 (open) and 1 (pallet obstacle). A robot moves up, down, left or right from the top-left cell to the bottom-right cell, and can clear at most k obstacles along the way. Return the minimum number of moves, or -1 if impossible.
Given rows from a business client's ACH upload file, return the indexes of rows whose 9-digit ABA routing number is malformed or fails the 3-7-1 checksum.
Each node of a rooted tree has an integer label equal to its index; for queries (node, v), return the maximum of v XOR label over all nodes on the path from the root to the given node.
Given a stream of requested loan amounts, return the median of every window of the last w applications. The solution must be faster than sorting each window.
Given two display names, you may delete characters from either one, paying each deleted character's code point value. Return the minimum total cost to make the two strings identical.
Design the service that, when a player presses Play in a cloud gaming client similar to GeForce NOW, picks a data center and a GPU server to run the game, considering latency to the player, capacity, membership tier and game requirements.
A researcher tests 200 signal variants on three years of daily data and reports the best one with an annualized Sharpe ratio of 2.0. Assuming all signals are pure noise, how likely is a result this good, and how would you deflate it?
Design the system that tracks whether each Teams user is Available, Busy, In a meeting, Away, or Offline across all their devices, and pushes status changes to everyone who is looking at that user within a second or two.
You have 120,000 pairwise preferences where expert reviewers chose the better of two model solutions to a coding prompt, with some ties and known label noise. Explain how you would train and validate a reward model on this data, including the loss and how you would handle ties and noisy raters.
Given a list of GPU node reservations as (node_id, start_hour, end_hour) with end exclusive, return the total billable hours per node, where overlapping or touching reservations on the same node are billed only once.
Design a cache of precomputed, partially ranked feed stories per user so that when someone opens the Facebook app after hours away, the first screen of News Feed renders in well under a second.
Meta's Ads team wants to track whether small advertisers keep advertising. Define advertiser retention and explain how you would handle the irregular, seasonal way small businesses spend.
Tell me about a time you gave a date for a deliverable, missed it, and had to reset expectations. What caused the slip and what do you do differently when estimating now?
To draw an outline around a binary tree diagram, return its boundary in anticlockwise order starting at the root: the left boundary top-down, then all leaves left to right, then the right boundary bottom-up, with no node repeated.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.