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 the number of players who own a game and a map of trophy id to how many of those players earned it, return every trophy with its rarity tier (Ultra Rare under 5%, Very Rare under 15%, Rare under 50%, otherwise Common), sorted rarest first.
Given an accounts payable table of invoices, write a SQL query that returns pairs of invoices from the same vendor with the same amount whose invoice dates are within 30 days of each other and whose invoice numbers match after normalization.
A grid has tiles (1) and empty cells (0). A tile is stable if it is in the top row or 4-directionally connected to a stable tile. Hits remove tiles one at a time, and after each hit every unstable tile falls and disappears. Return how many tiles fall after each hit.
Facebook needs to decide what counts as a video view for creators and advertisers: 3 seconds, 10 seconds, or a share of the video. Recommend a definition and explain the trade-offs.
Requests arrive at known times with known service durations and are served first come, first served by the replica that frees up earliest. Find the minimum number of replicas so that no request waits longer than W milliseconds.
The Microsoft Store has installs, launches and uninstalls but almost no explicit ratings. Explain how to build a matrix factorization recommender from implicit feedback, including how to treat unobserved user-app pairs.
YouTube raised the Premium price in a single country while prices elsewhere stayed flat. Estimate how the increase changed paid subscriber count and net revenue there, without any randomized holdout.
Given a log of API requests with api_key_id, org_id, and timestamp, assign requests to sessions where a new session starts after more than 30 minutes of inactivity for that key. Then report per org the number of sessions, average requests per session, average session length, and how many sessions had a single request.
Tell me about a time you got multiple teams to adopt a shared standard for measuring model quality when each had its own way of doing it.
A shuttle route is modeled as a singly linked list of stops that may loop back onto an earlier stop. Return the stop node where the loop begins, or None if the route ends, using O(1) extra space.
Given a node in a binary search tree of document IDs, where each node also has a parent pointer, return the node with the next larger ID (the in-order successor), or None if it is the largest.
Implement the verification step of speculative decoding: given k tokens sampled from a draft model with their draft distributions and the target model's distributions for the k+1 positions, accept or reject tokens so that the output is distributed exactly as if sampled from the target model.
Describe a time you had to convince a senior stakeholder who was skeptical of your work or your team, when you had no authority over them.
Sort a singly linked list of event timestamps in ascending order in O(n log n) time using only O(1) extra memory, which rules out recursion and copying to an array.
A Messenger experiment shows +1.2% average time spent with a p-value of 0.30. A small group of users spends many hours a day in the app. Explain how capping or other choices could make the analysis more sensitive and what to watch for.
Design the inference serving system behind an OpenAI-compatible API for a diffusion LLM, covering request routing, batching across denoising steps, autoscaling on GPUs, model rollout, and the latency and throughput SLAs for both chat and streaming use cases.
Given an accounts table with opening balances and a bank transactions table, write SQL that returns, for each account, the running balance after every transaction and the first date the balance went negative, if ever.
Explain why binary floating point is a poor choice for card balances and statement amounts, and show how you would represent money and split an amount (for example, a shared fee or an installment plan) into parts that always add back to the exact total across currencies with different minor units.
Write serialize(trie) producing a compact string and deserialize(s) rebuilding an identical trie, where nodes may be word ends and children are single characters.
Implement allocate(job_id, k) and release(job_id) over a fleet of 8-GPU nodes: jobs with k <= 8 must land on one node chosen by best fit, and jobs with k > 8 must be a multiple of 8 and take whole idle nodes.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.