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 low-latency authentication system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Given a stream of integers, implement a function to optimize the rotation of an array such that the elements are shifted to the right by a specified number of positions. The function should take the array and the number of positions as input and return the modified array, ensuring that the solution operates in O(n) time complexity and O(1) space complexity.
Discuss the trade-offs between batch normalization and regularization for click-through rate prediction.
Given three sorted binary trees, merge them into a single binary tree that maintains the sorted order of the elements. The output should be a new binary tree that contains all the elements from the input trees, with duplicates allowed. Your solution should efficiently traverse and combine the trees while preserving their sorted properties.
Design a scalable caching system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a scalable payment system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a geo-distributed monitoring system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a fault-tolerant messaging system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a high-throughput notification system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design an end-to-end ML system for personalization, covering data collection, feature engineering, model selection, training, and serving.
Write a query joining messages and rides to produce the combined rolling 7-day average.
Design a multi-tenant image processing system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a real-time chat system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a low-latency monitoring system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design and implement a hash map that can handle streaming input, allowing for efficient insertion and retrieval of key-value pairs. Your implementation should support the `put(key, value)` and `get(key)` operations, with average time complexity of O(1) for both. Ensure that the hash map can dynamically resize as needed to accommodate varying input sizes.
Design a geo-distributed recommendation system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a real-time order processing system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Write a SQL query to calculate conversion rate from the transactions table, considering nulls and duplicates.
Design a multi-tenant search system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a real-time image processing system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Get the full picture with our company interview guides.