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
Tell me about a time a serious bug, especially one touching user privacy or data, was found days before a launch. How did you organize the response and decide whether to launch?
For each signup week, compute the share of new Facebook users whose first logged action after signup was joining a Group, and list the three most common first actions overall.
Given C-style source text, remove // line comments and /* block */ comments while leaving comment-like sequences inside string and character literals untouched, preserving newlines so line numbers stay stable.
Design the ledger behind a digital wallet that lets a customer pay for one order with a mix of gift card balance, a credit card and store credit from a return. The ledger must never lose or duplicate money and must support partial refunds and order changes after checkout.
Given a compressed string such as "a3b12c" where each character is followed by an optional repeat count (default 1, possibly several digits), return the expanded string. A backslash escapes a digit so it can be repeated as a literal character.
Design the service that assigns queued CI/CD jobs from Azure DevOps pipelines to Microsoft-hosted and self-hosted build agents, matching capabilities and respecting per-organization parallelism limits.
Design the backend for a Nextdoor-style home feed where each post is published to the author's neighborhood and optionally to a ring of nearby neighborhoods, and each member's feed is ranked from posts across that audience plus groups and local businesses.
Search results arrive as an unsorted singly linked list of URLs. Remove later duplicates so each URL keeps only its first occurrence, preserving the original order.
Tell me about a time you needed another team to change how they worked, for example adopting your API or standard, without having authority over them. How did you get them on board?
Azure Storage keeps three replicas of each block on separate nodes. If each node fails on a given day independently with probability 1%, what is the probability that at least two replicas fail on the same day, and how often should we expect it?
Each round, take the two largest spam scores x >= y. If they are equal both are removed; otherwise they are replaced by x - y. Return the last remaining score, or 0 if none remain.
For autocomplete testing you need the number of distinct non-empty subsequences of a query string, counted as strings so duplicates are counted once. Return the count modulo 1,000,000,007.
Explain how byte pair encoding (BPE) tokenization works, why LLMs use subword tokens instead of words or characters, and how tokenizer choice affects cost and quality for Copilot users writing in languages like Japanese or Hindi.
Given frame-level teleoperation logs (session_id, t, joint_speed, gripper), split each session into episodes wherever the operator was idle for at least a gap threshold, drop idle frames and episodes that are too short, and return one row per episode with duration, frame count and number of grasps.
A city's roads are one-way. A truck at depot 0 must reach the sort center at node n - 1, and the city can flip the direction of any road at a cost of one permit each. Return the minimum number of reversals needed, or -1 if impossible.
A service consuming Dasher GPS pings to feed ETA predictions grows in memory until it is killed every few days. Explain how you would find the leak and implement a bounded cache of last-known locations with both a size limit and a time-to-live.
A Search query fans out to 100 leaf servers whose response times are independent exponentials with mean 10 ms, and the root waits for all of them. What is the expected time until the last response, and how much does waiting for the fastest 95 help?
Using a daily ad spend table, compute for each month the number of advertisers who spent, how many of them also spent in the following month, and the resulting month-over-month advertiser retention rate.
A truck loading sequence is a singly linked list of pallets. Reverse the nodes in consecutive groups of k and leave a final group with fewer than k nodes in its original order, using O(1) extra space.
Given the head of a singly linked list of chat messages and an integer k, reverse the nodes in every consecutive block of k, leaving a final block shorter than k in its original order. Use O(1) extra space.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.