Practice questions for 300+ companies, plus questions candidates reported from their interviews.
11,534 questions · 341 companies · 1,080 reported by candidates
Showing 11,534 results
Google evaluates how you handle feedback. Walk through specific feedback you received, your initial reaction, the concrete actions you took, and how it changed your approach going forward.
Implement a LRU Cache data structure that supports insert, delete, and lookup operations in O(1) time.
Design a geo-distributed logging system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
How would you improve Google Maps for power users? Walk through your product thinking process.
Write a query joining impressions and clicks to produce the combined percentile rank.
Write a SQL query to calculate churn rate from the rides table, considering nulls and duplicates.
Given a list of integers representing a graph's nodes, write a function to determine if the graph is sorted in non-decreasing order based on the values of its nodes. The function should return a boolean value: true if the graph is sorted, and false otherwise. Consider edge cases such as empty graphs and graphs with a single node.
Design a scalable recommendation system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a real-time ad serving platform. Cover ad auction mechanics, CTR prediction integration, targeting based on user signals, budget pacing, frequency capping, and serving ads within strict latency budgets.
Write a SQL query to calculate conversion rate from the messages table, considering nulls and duplicates.
Implement a Least Recently Used cache with O(1) get and put operations. Requires combining a hash map with a doubly linked list. A Google classic.
How would you improve Walmart.com for power users? Walk through your product thinking.
Given a 2D matrix of characters and a string, determine if the string can be found as a subsequence in the matrix by traversing adjacent cells (horizontally or vertically). Return true if the subsequence exists, otherwise return false. The input consists of the matrix dimensions and the target string, while the output is a boolean value indicating the presence of the subsequence.
Discuss the trade-offs between knowledge distillation and gradient descent for fraud detection.
Use the STAR method to answer. Be specific about the situation at Morgan Stanley, your actions, and measurable outcomes.
Implement a binary search algorithm to find the position of a target substring within a sorted array of strings. Given an array of strings and a target string, return the index of the target if it exists in the array, or -1 if it does not. The solution should have a time complexity of O(log n).
Given a string consisting of lowercase letters, write a function to find the shortest distance between two specified characters in the string. The function should return the minimum number of characters that need to be traversed to get from the first character to the second, or -1 if either character is not present in the string.
Design a real-time ride matching system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Write a query joining orders and impressions to produce the combined DAU/MAU ratio.
Design a distributed search system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Get the full picture with our company interview guides.