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
Two job title codes are isomorphic if the characters of one can be consistently replaced to get the other, with no two characters mapping to the same character. Given two strings, return whether they are isomorphic.
Given the sequence of song IDs a listener played, return the length of the longest contiguous stretch in which no song repeats.
You have 5,000 candidate features and about 2,000 daily observations to predict next day returns for an asset. Ordinary least squares fits the training data well and fails out of sample. How do you fix it, and how do you choose between ridge, lasso, and other approaches?
You need to forecast ride requests per hexagon per 15 minute window for the next hour. What features would you build from time and location, and how do you avoid leakage?
Two non-negative integers are stored as singly linked lists of digits with the most significant digit first. Return their sum in the same order without reversing either input list.
Given a voice agent's conversation flow as typed nodes and directed transitions with a start node, return nodes unreachable from the start and reachable nodes from which no end or transfer node can ever be reached.
Given the head of a singly linked list of support tickets and a severity threshold, reorder it in place so all tickets with severity below the threshold come first, preserving the original relative order within each group.
Implement `allow(user, now, is_mod)` for a channel's chat that enforces a per-user token bucket (burst capacity plus refill rate) and an optional slow mode requiring a minimum gap between a user's accepted messages, with moderators and the broadcaster exempt.
A test of 'Buy Again' shortcuts on the Amazon home page increases orders per customer by 3% but lowers average order value by 4%. Decide whether to launch and explain your reasoning.
Several dispatch workers may try to give the same driver a trip at the same moment. Implement a thread-safe assigner where exactly one trip wins a free driver, retries are idempotent, and stale releases cannot free a driver from a newer trip.
A user terminal can see satellite `i` during `[start_i, end_i]`. Choose the fewest satellites whose visibility windows together cover `[0, T]` without a break, or report that coverage is impossible.
Given a lowercase comment string s and an integer k, return the length of the longest substring in which every character that appears does so at least k times.
Tell me about a time you had to ship something important on a date you could not move while quality was still uncertain. What did you cut, what did you protect, and how did it turn out?
Design the serving infrastructure that takes tens of thousands of possible Facebook Feed candidates for a request and narrows them to a final ranked list of 50 through several model stages, within a tight latency budget.
Explain how batch normalization and layer normalization compute their statistics, and why transformers such as Llama use layer norm or RMSNorm instead of batch norm.
Implement post, follow, unfollow, and get_feed, where get_feed returns the 10 most recent post IDs from the user and the accounts they follow, newest first.
Given subscription records with a start date and an optional end date, compute for each month the opening subscriber count, the number who churned during the month, and the churn rate.
Ads click models lose accuracy within hours as new ads, events and user behavior appear. Design a continuous training and deployment pipeline that keeps the production click model fresh while guarding against bad updates.
A test that already fails 5 percent of the time on healthy code started failing about 30 percent of the time somewhere in the last few hundred commits. Write a bisection routine that finds the first bad commit while tolerating the flakiness.
Given a table of customer orders, compute recency, frequency and average order value features as of a snapshot date for a purchase propensity model, making sure no order on or after the snapshot is used.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.