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
Each of n tasks belongs to at most one team (or none), and each task lists tasks that must come before it. Return an ordering where every team's tasks appear consecutively and all dependencies hold, or an empty list if impossible.
ChatGPT lets users share a conversation as a public link, and leadership wants to know how many new signups these links cause. Sharing was launched to everyone at once, and recipients are not users yet, so a clean A/B test is not available. Propose how to estimate the causal effect and how confident you could be.
Given per-second samples of in-flight requests for a model deployment, a target concurrency per replica, min and max replicas, and a scale-down delay, return the replica count the autoscaler would hold at each sample. Scale up immediately, but only scale down once the lower demand has lasted for the full delay.
Capital One's Eno assistant answers customer questions in the app and by text. The support team wants to report containment rate, the share of chats that never reach a human agent. Define a better success metric.
Build an autocomplete over neighborhood names with popularity scores so that a query returns the most popular names that have some prefix within edit distance d (usually 1) of the query.
Design how ChatGPT keeps conversations, project folders, memory and settings consistent across a user's web, desktop and mobile clients, including offline edits on mobile.
Write a function that parses an IPv4 CIDR string, rejects malformed input, and returns the canonical network, whether host bits were set, the first and last address, and the block size.
Given two ascending lists of flight prices and hotel prices, return the k (flight, hotel) pairs with the smallest total price.
Tell me about a time you gave direct, uncomfortable feedback to a peer or someone more senior than you about their work or behavior. How did you deliver it and what changed?
Design the service behind the Amazon search box that returns the top query suggestions for a typed prefix in under 50 ms, per marketplace and language, refreshed as trends change.
Tell me about a time you were handed a requirement you thought was bad for customers, and what you did.
In a Teamfight Tactics style shop, each of 5 slots shows a unit of a given cost tier with probability p, drawn from a shared pool. Estimate the probability a single shop contains at least one copy of your target unit, and the expected gold to find one, when the unit is uncontested versus contested.
Design the ML system behind a feature that detects a likely hurtful or uncivil reply while the member is composing it and asks them to reconsider, covering labels, model choice, serving latency, thresholds and fairness monitoring.
At the end of a League week, each of up to 30 learners has a total XP and the timestamp at which they reached it. Rank them, then label each learner promote, stay or demote given the size of the promotion and demotion zones, where anyone with zero XP is always demoted.
Implement an iterator over a BST of post timestamps with next() returning the next smallest timestamp and has_next(), using O(h) memory.
Design Watch Party for Prime Video, where up to 100 viewers in different places watch the same title in sync, with the host controlling play, pause and seek, and a side chat.
LinkedIn lets creators publish newsletters that members can subscribe to. Propose a single north star metric for the newsletter product and justify it against alternatives.
Given a snippet of document text and a list of query terms, return the snippet with every whole-word, case-insensitive match wrapped in <b> tags, merging consecutive matches separated only by whitespace into a single bold run.
Given API request intervals as half-open (start_ms, end_ms) pairs and a concurrency limit, return the peak number of simultaneously open streams and the total milliseconds during which concurrency exceeded the limit.
Each person has a local working window (start hour, end hour) and a UTC offset that may be fractional; windows may cross midnight. Return the number of hours per day both are working at the same time.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.