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 messages table with tenant_id, message_id, sender, recipient and received_at, write a query that labels each message as first contact if that sender had never emailed that recipient within the same tenant before, then count first-contact messages per tenant per day.
Engineering can cut the Facebook Android app download size by 15% by removing offline Feed caching. A test shows more installs completing in emerging markets but fewer sessions on flaky connections. How do you decide?
Given a singly linked list of timestamps in ascending order, build a height-balanced binary search tree containing them, in O(n) time and without copying the list into an array.
You have 250 daily log returns for a stock with sample standard deviation 1.2%. Estimate annualized realized volatility, give a confidence interval, and say whether an implied volatility of 22% looks rich.
Design a service that loads files into tables within a minute of their landing in a customer's S3, GCS or Azure bucket, driven by storage event notifications, loading each file exactly once even when events are duplicated or lost.
Implement an allocator over racks with known free GPU counts that places a job of k GPUs in the single rack with the tightest fit when possible, otherwise spans the fewest racks, and supports releasing a job's GPUs.
Implement a console buffer that receives arbitrary text chunks from a running process and keeps only the most recent lines, capped both by line count and by total bytes, while correctly handling lines split across chunks.
Seven pharmacists must each be assigned to exactly one of three shifts (morning, afternoon, evening) at a 24 hour CVS pharmacy, and every shift needs at least one pharmacist. How many assignments are there? How many if two specific pharmacists cannot work the same shift, and how many if shift sizes must be 3, 2 and 2 in some order?
Given tasks with hour estimates and a list of teammates, assign every task so the busiest teammate's total load is as small as possible, using a fast greedy approach suitable for an interactive workload view.
Tell me about a time you noticed a customer problem that was not on your roadmap and did something about it. How did you find it and how did you justify the work?
A new accent chair has a 5.0 average from 3 reviews and a bestseller has 4.6 from 420 reviews. Propose a scoring method so sort-by-rating does not reward tiny samples, and compute scores for a small example.
From a users table (user_id, signup_time) and an events table (user_id, event_name, event_time), produce a table of weekly signup cohorts showing the percentage of each cohort that performed a key action in week 0 through week 8 after signup.
Two data centers each report request latencies as a sorted array. Return the median of the combined data in O(log(min(m, n))) time, without merging the arrays.
Implement a trie for search-log terms with `insert(word)`, `count_equal(word)`, `count_prefix(prefix)`, and `erase(word)`, where the same word may be inserted multiple times and erase removes one occurrence.
Design a system that ingests about 200k supplier invoices a month (PDF scans, emails, EDI) for a mid-size distributor, extracts header and line-item fields with an LLM, posts them to the client's ERP, and routes uncertain documents to a human review queue.
A Nest keypad test generates PINs made of k distinct digits from 1 to 9 whose digits sum to n. Return every such set of digits in ascending order.
Trips per monthly active rider fell 9% over the quarter, yet every city segment you check shows trips per rider rising. Explain what is going on and how you would report it.
Design the backend that ingests GPS, engine diagnostics and sensor readings from millions of cellular-connected gateways, stores them for real-time dashboards and historical queries, and tolerates devices that go offline and upload hours of buffered data at once.
Design a quota and scheduling service that divides Meta's shared GPU training clusters among product and research teams, guaranteeing each team its reserved share while letting idle capacity be borrowed and reclaimed through preemption.
Design the recommendation pipeline that builds the For You timeline on X: retrieve about 1,500 candidate posts per request from in-network and out-of-network sources, rank them with a neural model predicting several engagement types, and apply filters and mixing, all within a tight latency budget.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.