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 stream of readings from a Nest thermostat and a tolerance, return the length of the longest contiguous window in which the difference between the maximum and minimum reading is at most the tolerance.
Using timesheets, charge codes, a working-day calendar and consultant start and end dates, write a query that returns each consultant's billable hours, available hours and utilization percentage for every month they were employed, including months with no billable time.
Given the raw byte chunks of a server-sent events response from an OpenAI-compatible chat completions endpoint, reassemble the generated text, the finish reason and the usage block, handling events split across chunk boundaries.
A card PIN policy rejects any 4-digit PIN where two adjacent digits are the same. How many PINs are allowed, what fraction of random PINs are rejected, and how does that compare with a rule that bans any repeated digit?
Given delivery offers as (start, end, pay), choose a set of non-overlapping offers that maximizes total pay, where an offer ending at time t is compatible with one starting at t.
Google Maps models a downtown grid where a driver must go 5 blocks east and 4 blocks north using only east and north moves. Count the routes, then count them again if the intersection 2 east and 2 north is closed.
Exchanges publish identical packets on two or more redundant lines, each in sequence order but with different delays and drops. Merge the lines into a single stream that emits every sequence number exactly once, in order, taking whichever copy arrives first.
Feed ranking predicts many actions at once, such as like, comment, share, hide, and dwell time. Explain how you would structure a multi-task model and its loss, and how the task predictions become one ranking score.
Tell me about a time a frontend change you shipped hurt performance for some users and you did not catch it before launch. What happened and what did you change?
Venmo wants to send automatic reminders for unpaid payment requests. Because a reminder affects both the requester and the payer, a user-level A/B test will be contaminated. Design an experiment that gives a trustworthy estimate.
Given a word-frequency dictionary, build an index that returns the top k correction candidates for a misspelled word within edit distance 2 (counting adjacent transpositions as one edit), ranked by distance and then by frequency.
After laying out a masonry grid, each column has some free vertical space left at the bottom of the viewport. Given those free heights for adjacent equal-width columns, find the largest rectangular banner (area in column-units times pixels) that fits, and which columns it spans.
AirPods pairing moves through states off, discoverable, pairing and connected based on events open_case, select, confirm, fail, disconnect and close_case. Given an event list, return the final state, or the index of the first event that is invalid in its current state.
Each ad campaign runs over an inclusive day range [start, end]. For each query day, return the length (end - start + 1) of the shortest campaign that is active on that day, or -1 if none is.
A frontend server reads configuration on every request and must pick up new config pushed at runtime. Design it so request threads never take a lock and never observe a half-applied update, while reloads are validated and serialized.
Build a small social feed class supporting post, follow, unfollow and get_feed, where get_feed returns the 10 most recent post IDs from the user and everyone they follow.
Google Docs assigns each new comment thread a uniformly random 32-bit ID. Estimate the probability of at least one collision among 100,000 IDs, and find how many IDs give a 50% collision chance.
Tell me about a time you convinced your manager to shift team priorities toward a problem that was not on the roadmap. How did you make the case?
A product manager checks a DoorDash promo experiment every day and wants to stop it the first day the p-value falls below 0.05. What is wrong with that, and what would you suggest instead?
Each approved applicant holds a rate lock over an inclusive day range [start, end]. Return the maximum number of locks active on any single day and the first day that maximum is reached.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.