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
Design a distributed feature flag system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a event-driven feed generation system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Given a grid of integers, implement a greedy algorithm to find the maximum sum of values collected while moving from the top-left corner to the bottom-right corner, only being allowed to move right or down. The input will be a 2D array of integers, and the output should be a single integer representing the maximum sum.
The activation rate dropped by 15% this week. Walk through your investigation process.
Design a distributed ad serving system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
A query on orders is running slowly. Identify the bottleneck and optimize it.
Design a multi-tenant content delivery system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a low-latency analytics system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
A query on users is running slowly. Identify the bottleneck and optimize it.
How would you improve Google Maps for enterprise? Walk through your product thinking process.
Design a distributed ride matching system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Write a query to compute time to first action grouped by user, handling edge cases like nulls and duplicates.
Given a binary tree, implement a function to determine if it is a valid binary search tree (BST). A valid BST is defined as a tree where for each node, all values in its left subtree are less than the node's value, and all values in its right subtree are greater. The function should return a boolean indicating whether the tree satisfies this property.
Design a high-throughput analytics system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a distributed chat system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design an end-to-end ML system for document classification, covering data collection, feature engineering, model selection, training, and serving.
Design a event-driven authentication system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a distributed file storage system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a high-throughput messaging system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Given a string, implement a function to optimize its compression by replacing consecutive repeating characters with a single character followed by the count of repetitions. For example, the input "aabbcc" should return "a2b2c2", while "abc" should return "abc". Your solution should operate in O(n) time complexity and use O(1) additional space.
Get the full picture with our company interview guides.