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
Build a structure supporting add_volume(ticker, shares) and suggest(prefix) that returns up to three tickers starting with the prefix, ordered by cumulative intraday volume (highest first, ties by name).
Horizon Worlds wants to test spatial voice chat improvements. Users meet strangers in shared world instances. How do you randomize so treated and control users do not experience each other's audio, and how do you analyze it?
Pick a significant technical decision you made that you now think was wrong. Why did it seem right at the time, what did it cost, and what would you do differently?
Fans stand in a line where fan i wants tickets[i] tickets. Each second the front fan buys one ticket and, if they still need more, walks to the back. Return how many seconds pass until fan k has all their tickets.
Razorpay wants to measure whether its one-click Magic Checkout increases completed orders for D2C merchants compared with standard checkout. Design the experiment, choose the unit of randomisation and metrics, and explain how you would analyse the result.
Each daily word puzzle is 7 distinct letters with one required center letter. A word is valid for a puzzle if it contains the center letter and uses only the puzzle's letters. Given 10^5 words and 10^4 puzzles, return how many words are valid for each puzzle.
Implement a tokenizer and recursive-descent parser for a small query filter language with field comparisons (=, !=, <, <=, >, >=), string and number literals, AND, OR, NOT and parentheses, then return the ids of records that match.
Implement a class that lets a user place a time-limited hold on a set of seats during checkout, purchase seats they hold, and query availability, with holds expiring automatically after a fixed TTL.
Given the advertisers of the ads to place in a feed of native ad slots, return an ordering in which any two ads from the same advertiser are at least k slots apart, or an empty list if no such ordering exists.
Explain what the key-value cache does during autoregressive LLM decoding, estimate its memory for a realistic model, and describe techniques to serve more concurrent shopping-assistant conversations per GPU.
Given a list of distinct usernames, return for each one the shortest prefix that no other username in the list shares, so a mention picker can disambiguate with as few keystrokes as possible.
Write parse_usdc(text) that converts a user-entered USDC amount such as '12.5' into integer base units (USDC has 6 decimals), rejecting anything malformed or too precise, and format_usdc(units) that converts back to a canonical string.
Given an R x C grid of scores, sort each diagonal running from top-left to bottom-right in ascending order and return the grid.
Tell me about a time you set aside your own planned work because users needed something fixed right away.
Users complain Explore becomes repetitive. Define a content diversity metric for Explore that ranking teams can track and use in experiments, and explain how to keep it tied to user value.
Design the service that keeps a customer's index in sync with sources like Google Drive, Jira and Confluence: initial full crawl, ongoing incremental updates, deletions and permission changes, all within each vendor's API rate limits.
Three drive units on an Amazon fulfillment center floor each fail independently on a given shift with probabilities 0.02, 0.05 and 0.10. What is the probability at least one fails, and how does the answer change if failures are correlated?
Parcels at a fulfillment center must leave in the given order, with one van trip per day carrying a contiguous batch. Return the minimum van capacity (in kg) that ships all parcels within D days.
Design an agent that answers a lawyer's legal research question by planning searches across case law, legislation and the firm's own documents, then writes a memo where every proposition is backed by a verified citation.
Design a system where users set alerts such as 'tell me when ETH drops below 2,800 USD' or 'BTC moves 5% in a day', evaluated against live prices and delivered by push, email and in-app within seconds.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.