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
A Messenger messages table records sender and recipient for one-to-one chats. Count the number of unique conversations started each day, where a conversation is an unordered pair of users and its start is the first message between them.
Design how the Riot Client downloads and applies game patches for League of Legends and VALORANT to tens of millions of PCs, minimizing download size, surviving interruptions and handling a patch day traffic spike.
Design and implement an idempotency layer so that a mobile client retrying a transfer request after a timeout never moves money twice, including when duplicate requests arrive concurrently.
Design how Amazon calculates and pays out money owed to millions of third-party sellers every two weeks or daily, net of fees, refunds and reserves, into bank accounts in many countries.
Given a pandas DataFrame of daily portfolio weights (dates by tickers, possibly with missing entries), compute daily turnover as the sum of absolute weight changes after scaling each day to unit gross exposure, and the average turnover.
A depot has EV charging sessions, each with an arrival slot, departure slot, energy needed and per-vehicle max charge rate, and the site has a power cap per hourly slot. Decide whether every session can be fully charged and, if so, produce a schedule.
In scaled dot-product attention, scores are computed as $QK^T / \sqrt{d_k}$. Explain mathematically why the scaling is there and what happens without it.
Implement a cache of FX rates shared by many request threads. Entries expire after a TTL, and when a rate is missing or stale only one thread should call the slow rate source while the others wait for its result.
Given an array of per-shard scaling factors, return an array where position i holds the product of every factor except the one at i, without using division and in O(n) time.
Describe a time you found a significant bug during a holiday or release code freeze. How did you weigh a quick hotfix against waiting for a proper fix?
People in a team photo lineup are described by pairs (h, k): height h and the number of people in front of them with height at least h. Given the pairs shuffled, reconstruct the lineup.
Design a webhook system that notifies external services when records in a base are created, updated or deleted, with filtering by table and field, at-least-once delivery, and a way for receivers to catch up after downtime.
An electric delivery van starts with some charge and must drive D miles; swap stations along the route each add a fixed number of miles of range. Return the fewest stops needed to finish, or -1 if impossible.
Implement a fixed-capacity window over IMU accelerometer samples that supports push, mean of the samples currently held, and the n most recent samples, all without allocating after construction.
Google One can show a new free-trial offer to 200,000 eligible users per arm in the test window, and baseline trial start rate is 4%. Compute the minimum detectable effect and explain whether the test is worth running.
Given a time-ordered stream of (timestamp, sender_id) friend requests, accept a request only if that sender has had fewer than k accepted requests in the previous w seconds, and return a list of accept or reject decisions.
An Instagram Feed change showed +1.2% time spent in its A/B test, but after launch the team's metrics suggest only about +0.4%. List the reasons this happens and how you would quantify each.
Tell me about the most complex cross-functional effort you led to get a model or system into production. How did you manage the many approvals and dependencies?
Design a middleware system where cross-cutting concerns such as logging, authentication, and error handling wrap a request handler in a configurable order, and any middleware can short-circuit the request.
Tell me about a model or algorithm change you shipped that harmed a group of users or creators. How did you find out, respond, and prevent it from happening again?
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.