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
Write a query joining rides and clicks to produce the combined churn rate.
Design a distributed notification system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a fault-tolerant recommendation system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Implement a breadth-first search (BFS) algorithm to traverse a linked list, starting from a given node. Your function should return a list of values in the order they are visited. The input will be the head of the linked list, and the output should be an array of the node values.
Write a SQL query to calculate DAU/MAU ratio from the transactions table, considering nulls and duplicates.
Design a distributed video streaming system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Describe ensemble methods in depth, including how it works, when to use it, and common pitfalls.
Design a event-driven email system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Implement a Depth-First Search (DFS) algorithm to traverse a given 2D matrix, where each cell contains either a 0 or a 1. Your task is to count the number of connected components of 1s in the matrix, treating adjacent 1s (horizontally or vertically) as part of the same component. The input will be a binary matrix, and the output should be an integer representing the total number of connected components.
Count the number of connected components in the given interval list.
Design a event-driven logging system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a geo-distributed a/b testing system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a real-time feature flag system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Write a query joining users and orders to produce the combined DAU/MAU ratio.
Design a low-latency payment system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a real-time logging system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design an end-to-end ML system for spam filtering, covering data collection, feature engineering, model selection, training, and serving.
Discuss the trade-offs between embeddings and model pruning for spam filtering.
Design a multi-tenant url shortening system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Get the full picture with our company interview guides.