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
Implement full-string matching for patterns where '.' matches any single character and '*' means zero or more of the preceding element. Return whether the pattern matches the entire input string.
A video's preview contact sheet is an R by C grid of thumbnail frame ids. Return the ids in clockwise spiral order starting from the top-left, which the editor uses for an animated 'reveal' effect.
Design the search backend that lets Facebook Marketplace buyers find listings within a chosen radius of their location, filtered by category and price, ranked by a mix of relevance and distance.
A 400-store regional coffee chain wants to launch a points-based loyalty app. Estimate the annual profit impact and decide whether to proceed.
Design the throttling layer for an AWS service control plane (for example EC2 DescribeInstances and RunInstances) that enforces per-account, per-API request rates across a large regional fleet, returning ThrottlingException fairly and protecting the backend.
Each warehouse bin holds a number of units. A clearance operation removes floor(units / 2) from one chosen bin. Apply exactly k operations (the same bin may be chosen again) and return the minimum possible total units left.
Uber Eats wants to prompt eaters to add a tip while the order is on its way, rather than only after delivery. Design the experiment and decide what results would justify a launch.
Given a workbook table where each calculated column has a formula that references other columns by name in brackets, return a valid evaluation order, and when there is a cycle, report the columns that cannot be evaluated plus one concrete cycle path for the error message.
Given a permutation of the latency ranks 1..n for consecutive requests and a target rank k, count the contiguous windows whose median is k, where the median of an even-length window is the lower of the two middle values.
Given a fills table and a quotes table, attach to each fill the latest quote for the same symbol at or before the fill time (rejecting quotes older than one second), then report average slippage versus mid in basis points by pod and side.
Tell me about a time you used your position to create an opportunity for someone who might otherwise have been overlooked. What did you do, and how did you make sure they succeeded?
Given lengths of fiber cable segments, count how many triples of different segments could form a non-degenerate triangle, meaning the two shorter lengths sum to more than the longest.
Given flat rows and an ordered list of grouping columns, return display rows for a grouped table: a detail row for each deepest group, a subtotal row after each group at every shallower level, and a grand total at the end, all in one pass after sorting.
Design the ledger behind sending money between users in Messages and Wallet, guaranteeing balances never go negative, transfers are exactly-once, and every cent is auditable.
Your new ranking model improved offline AUC and NDCG, but in an A/B test it decreased time spent. Walk through how you would diagnose the discrepancy.
Tell me about a time you had a disagreement with a colleague in another time zone. How did you resolve it when you could rarely meet live?
Design the typeahead service that suggests queries and products as a customer types into the walmart.com or app search bar. Suggestions must return in under 50 ms and reflect trending items and the shopper's local store.
Design a national appointment booking system where millions of applicants try to book a limited set of slots across hundreds of service centers when each day's slots are released at a fixed time, with no double booking, fair access, and protection against bots and agents hoarding slots.
An agent reports EC2 CPU utilization at irregular times (instance_id, ts, cpu_pct). In pandas, convert each instance's readings into a regular five minute series using the bucket mean, forward-fill short gaps up to fifteen minutes, leave longer outages as missing, and flag which values were filled.
A data center rack network of n racks was a tree until one extra cable was added, creating exactly one loop. Given the cables in installation order, return the cable that can be removed to restore a tree, choosing the one installed last if several qualify.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.