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
Use the STAR method to answer. Be specific about the situation at Morgan Stanley, your actions, and measurable outcomes.
Design a fault-tolerant messaging system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Discuss the trade-offs between knowledge distillation and feature importance for entity recognition.
Write a query to compute churn rate grouped by region, handling edge cases like nulls and duplicates.
Design a real-time analytics system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a fault-tolerant video streaming system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a low-latency messaging system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a geo-distributed url shortening system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a event-driven file storage system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a system that allows Rivian owners to unlock, start, and share access to their vehicles using smartphones, key cards, and digital keys.
Design CDN architecture for multi-region video delivery: PoP placement, cache eviction, origin shielding, and cost versus latency trade-offs.
Implement a Segment Tree data structure without using recursion. The Segment Tree should support the following operations: building the tree from an array of integers, querying the sum of elements in a given range, and updating the value of a specific element. Your implementation should efficiently handle these operations with a time complexity of O(log n) for both updates and queries.
Implement a Breadth-First Search (BFS) algorithm to traverse a given array, treating it as a level-order representation of a binary tree. Your function should return the elements in the order they are visited during the BFS traversal. The input will be a non-empty array of integers, and the output should be an array of integers representing the traversal order.
Design a scalable authentication system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a geo-distributed messaging system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a event-driven video streaming system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a fault-tolerant authentication system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a distributed monitoring system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a system that assembles the optimal context for LLM prompts in a code editor. Given a user query or editing action, retrieve the most relevant code, documentation, and conversation history within a fixed token budget.
Design a multi-tenant email system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Get the full picture with our company interview guides.