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 an unsorted list of integer user IDs from a signup batch, return the length of the longest run of consecutive integers present, in O(n) time.
Given outage intervals for many trading pairs, compute the total time in a reporting day when at least one pair was down and the longest stretch when every pair was healthy.
Two Street View cars start at the top-left and top-right cells of an m x n grid of landmark scores and each moves down one row per step to the diagonal-left, straight-down or diagonal-right cell; return the maximum total score collected, counting a shared cell only once.
Many checkout requests for a limited item hit the inventory service at the same time. Show why a read-then-write decrement oversells, and implement both an optimistic compare-and-set approach and a pessimistic locking approach that never sell more than the stock.
Tell me about a time you onboarded a new teammate. What did you do to get them productive, and how did you know it worked?
You roll a fair die and are paid the face value in dollars, but after seeing the first roll you may reroll once and take the second result instead. What is the fair price of this game, and what is your optimal strategy?
Suppose each day's peak concurrent users on a Meta service is an independent draw from the same continuous distribution. Over 365 days, how many days do you expect to set a new all-time high (counting day one)?
Tell me about a time you found a serious flaw, such as a data leak or bug, in work that a senior colleague was proud of and relying on. How did you raise it and what happened?
A watch party row has n seats. seat() places a viewer in the seat that maximizes the distance to the nearest occupied seat (lowest index on ties) and returns it; leave(p) frees seat p.
Tell me about a time you wrote a design document for a change that affected several teams, and how you got all of them to agree.
Replit Agent streams its plan, tool calls, and command output to the workspace while it works. Compare WebSockets, Server-Sent Events, and long polling for this stream and pick one, explaining reconnection and ordering.
Design a system where a customer types a query like 'person in a red jacket near the loading dock yesterday afternoon' and gets matching moments across thousands of cameras, using the thumbnails and metadata cameras already upload.
Given a list of lowercase handles, group together the ones that can be turned into each other by shifting every letter forward by the same amount (with z wrapping to a), and return the groups.
Tell me about a time a client or stakeholder changed a requirement after work had started. How did you respond, and what happened?
Design the ML system that sets the price a pro pays for each lead, based on the job's details, location and marketplace conditions, so pros earn a good return and the marketplace stays balanced.
A binary tree holds revenue values that are only partly ordered. Return the maximum sum of node values over all subtrees that are valid binary search trees (an empty subtree has sum 0).
Given the sorted calendar days of the year on which a Google employee will commute, and prices for 1-day, 7-day and 30-day transit passes, return the minimum total cost to cover every commute day.
Given the dimensions of matrices A1 through An to be multiplied in order, return the minimum number of scalar multiplications needed and an optimal parenthesization string.
Implement logistic regression with an L2 penalty using batch gradient descent, without ML libraries, for predicting whether a customer will click a Subscribe and Save offer. Show how the penalty changes the learned weights on separable data.
Explain how rotary position embeddings encode position, prove the attention score depends only on relative offset, and discuss how to extend a model trained at 8k tokens to a much longer context.
Get the full picture with our company interview guides.
Tell us what you were asked. Get 1 AI interview credit for each approved report.