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
To save compute, a like-prediction model was trained after keeping only 5% of negative examples. Explain why its outputs are too high and write a function that corrects them.
Given an array of integers representing an ordering of feed items, rearrange it in place into the next lexicographically greater permutation. If none exists, rearrange it into ascending order.
Given exchange quotes from liquidity providers as directed edges with rates, find the conversion path from a source currency to a target currency that maximizes the received amount while using at most k conversion legs.
Design the system that deploys a new server build to a small slice of Meta's fleet, compares its health metrics against the existing build, and automatically decides to proceed, pause, or roll back.
Implement an order book for one equity that accepts limit buy and sell orders and cancels, matches incoming orders against resting ones by best price then earliest arrival, and returns the trades produced.
Design the system that shows whether a user's contacts are currently active in Messenger and when they were last seen, for billions of users with frequent connect and disconnect events.
Describe a time you disagreed with the goal metric your team was asked to optimize. How did you make the case, and did the metric change?
The Facebook Video team requires a test to improve both watch time and 7-day retention to ship. A colleague says you must apply a Bonferroni correction because there are two metrics. Explain the correct test and its power.
Given two manifests mapping file path to content hash from consecutive backups of a file share, return the added, removed and modified paths.
Given a table of the firm's fills and a table of top-of-book quotes, compute each fill's signed markout (mid price at t plus 100 ms, 1 s and 5 s minus fill price) and summarize quantity-weighted markouts per symbol.
Given two version strings such as "1.10.2" or "2.0-beta", return -1, 0, or 1 depending on whether the first is older, equal, or newer, treating missing trailing segments as zero and pre-release tags as older than the plain release.
BCG X built a supply chain control tower for a consumer goods client, but six months after launch only 20% of planners use it weekly. Diagnose why and propose a plan to raise adoption.
Given a recorded ego trajectory and a simulated one as lists of 2D poses sampled at different rates, compute the minimum dynamic time warping cost under a Sakoe-Chiba band of width w and return the alignment path.
Design a system that lets users search their base records by meaning (for example 'customers who complained about shipping') and that powers retrieval for AI features, keeping embeddings fresh as records change while respecting per-base permissions.
Tell me about a time an urgent customer escalation collided with a release your team had committed to. How did you decide what to do, and how did you communicate it?
For a creator's daily engagement counts, the score of a contiguous window is (minimum day in the window) times (sum of the window). Return the maximum score over all non-empty windows.
A feature rollout is a directed acyclic graph of stages numbered 0 to n minus 1, where graph[i] lists the stages that can follow stage i. Return every path from stage 0 to stage n minus 1.
Given the root of a BST of session keys and a key, delete the node with that key (if present) and return the new root while keeping BST order.
Creators become eligible for a monetization program once they reach 10,000 followers. Use this threshold to estimate how monetization eligibility changes posting frequency.
Design an improvement to Google Photos that helps grandparents who are not tech-savvy stay connected to grandchildren's photos and videos.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.