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 singly linked list of feed items L0 -> L1 -> ... -> Ln, reorder it in place to L0 -> Ln -> L1 -> Ln-1 -> ... so fresh and older items alternate, using O(1) extra space.
Using clickstream events within a browsing session (search, product view, add to cart, remove, review read), design features that predict whether the session ends in a purchase, and explain how you would compute them in near real time.
Design a question-answering assistant for a 5,000-employee company that searches Confluence, SharePoint and Google Drive content, and guarantees that answers only use documents the asking employee is allowed to see.
Each month a card account is current, 30 days past due, or 60 or more days past due, or it is absorbed by paying off or charging off. Given monthly transition probabilities, compute the probability a current account eventually charges off and the expected months until it leaves the book.
Describe a time you found a serious issue in another team's product right before their deadline and needed them to fix it. How did you get it prioritized?
StubHub wants to measure what showing all-in prices (fees included) from the first page, instead of at checkout, does to buyer conversion, order value and checkout abandonment. Design and analyse the experiment.
Given sellers as (seller_id, positive_ratings, total_ratings), return the k best sellers ranked by positive rate, then by total ratings, then by seller id ascending, skipping sellers with no ratings.
Tell me about a time you had more work than time before a fixed deadline. How did you decide what to drop, and how did you communicate it?
A test of a card application that skips one income verification step raised approvals 6% after four weeks, but charge-offs will not be visible for 12 to 18 months. Decide whether to launch now, and explain how you would estimate long-term losses from early signals.
Apple Music's shuffle needs a pool of track ids supporting insert(id), remove(id) and pick_random(), each in average O(1) time, where pick_random returns every current track with equal probability.
Design the recommendation system for a news app like Toutiao that personalizes articles for each reader while making breaking news appear within minutes of publication.
A player bets $1 on red in American roulette (win probability 18/38), doubling the bet after each loss and stopping after the first win. With a bankroll of $1023 they can survive 10 straight losses. What is the expected profit of one round of this strategy?
Describe a time you noticed a team habit or process that you thought was harmful and successfully changed it without being the team lead.
You are building the feature set for a learning-to-rank model that orders web results for Google Search queries. Describe the main feature groups you would engineer, how you would compute them efficiently, and how you would guard against features that hurt generalization.
The team wants to test whether nudging brands to lower their opening order minimums increases marketplace orders. Design the experiment, choose the randomisation unit and metrics, and explain how you would handle interference between retailers and brands.
Design a system that collects video playback quality metrics from TikTok clients, such as startup time and rebuffering, and shows real-time dashboards and alerts by region, network, CDN and app version.
Buildings stand in a row with the ocean to the right. A building has a view if every building to its right is strictly shorter. Return the indices of buildings with a view in increasing order.
Reorder a singly linked playlist L0, L1, ..., Ln into L0, Ln, L1, Ln-1, L2, ... by relinking nodes, using O(1) extra space.
Using four weeks of Messenger video call starts, find the local hour of day with the most calls on average for each country. Convert timestamps to the country's local time first.
Estimate how much GPU memory the key-value cache needs when serving a 7B Llama-style model at long context, and explain the techniques that reduce it.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.