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
Write a function that rounds a byte address up to the next multiple of a power-of-two alignment and returns both the aligned address and the padding bytes added. Reject alignments that are not positive powers of two.
Instagram sends a re-engagement nudge to users in the bottom 10% of last week's time spent, and their time spent doubles the next week. Using a bivariate normal model on log time spent, show how much of that rise to expect with no effect at all, and describe a design that measures the nudge's real effect.
Jobs arrive in order with (arrival_time, duration). Each job runs on the lowest-numbered idle GPU at its arrival; if all n GPUs are busy, it waits and runs on whichever GPU frees first (lower id on ties), keeping its duration. Return each job's GPU and start time, and the GPU that ran the most jobs.
Given a time-sorted list of localization samples (t, x, y, yaw), implement a function that returns the interpolated pose at an arbitrary query time, correctly handling yaw wrapping at plus or minus pi and queries outside the recorded window.
Given a fixed 2D grid of engagement counts, support many queries that return the sum inside a rectangle defined by its top-left and bottom-right corners.
A pharmacy claims fraud model was trained after keeping all fraud cases but only 2% of legitimate claims. Its predicted probabilities look far too high in production. Explain why, show how to correct them, and how to choose an alert threshold for investigators.
Given n regions connected by weighted latency links and a latency budget, find the region that can reach the fewest other regions within the budget. Break ties by returning the region with the largest index.
Tell me about a time you launched a product or feature in a new country or market and it underperformed because you misunderstood local user needs. What did you learn and how did you adapt?
Design a structure that records balance changes per account in timestamp order and answers the balance at any past time and the net change between two times.
Messenger wants to test showing read receipts only after a reply is typed, rather than on open. Design the experiment, choosing between user-level and conversation-level randomization.
A third-party seller lists a new product with a title, images and a category but no sales history. Explain how you would get it into recommendations and search ranking fairly quickly without hurting customer experience.
Given an inventory event log with store id, SKU id, event timestamp and quantity after the event, compute for each store and SKU how many separate out-of-stock spells occurred and the total out-of-stock minutes up to a report cutoff time.
For a decoder-only transformer with hidden size 4096, 32 layers, a 4x MLP and a 50,000 token vocabulary, estimate the parameter count, the memory to serve it in 16-bit, and the memory to train it with Adam in mixed precision.
Tell me about a time another team shipped a change that broke your service or your customers, and how you handled both the fix and the relationship.
For each marketplace (US, UK, DE, JP and so on), compute monthly revenue, the previous month's revenue, and the percentage change using LAG.
Process a stream of add, cancel and modify messages for a single instrument's limit order book and support a query that returns the best bid and best ask with their aggregate size at any time.
A bug may have created a cycle in a singly linked job queue. Return the node where the cycle begins, or None if the queue is acyclic, using O(1) extra space.
In a Slack Connect channel shared by several organizations, each org may store its own copy of messages under its own retention, legal hold and encryption-key policies. Design how message edits, deletes and retention expiry propagate correctly and in order across all participating orgs.
Meta Quest headsets sold this holiday season came with a free bundle of games, unlike last year. Headsets activated this December show better 60-day retention than last December's. Estimate whether the bundle caused it.
Given a dictionary of document id to text, return groups of documents whose word 3-gram shingle sets have Jaccard similarity of at least a threshold, using MinHash with locality-sensitive banding to avoid comparing every pair.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.