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 the architecture for Stripe Connect. Cover scalability, data storage, caching, and real-time requirements.
Design a event-driven messaging 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.
Given a 2D grid of non-negative integers representing the cost of moving through each cell, write a function to calculate the shortest distance from the top-left corner to the bottom-right corner of the grid. You can only move either down or right at any point in time. The function should return the minimum cost to reach the bottom-right corner.
Design a distributed url shortening system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design an algorithm to serialize a binary tree to a string and deserialize it back. Tests tree traversal and string parsing skills, a recurring Google question.
Design a high-throughput ride matching system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Given an array of integers, write a function to calculate the median value. The median is defined as the middle value when the numbers are sorted; if the array has an even number of elements, return the average of the two middle values. Your function should take an array as input and return the median as a float.
Design a low-latency feed generation system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a distributed rate limiting system. Compare token bucket, sliding window, and fixed window algorithms. Cover distributed coordination, race conditions, and how to handle rate limiting across multiple data centers.
Design the architecture for Collaborative Playlists. Cover scalability, data storage, caching, and real-time requirements.
Design a low-latency notification system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
How would you improve Instagram Reels for enterprise? Walk through your product thinking process.
Design a real-time authentication system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a fault-tolerant order processing system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Write a query joining orders and clicks to produce the combined time to first action.
Write a query joining clicks and transactions to produce the combined average revenue.
Discuss the trade-offs between few-shot learning and model pruning for document classification.
Design a geo-distributed image processing system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Given an array of integers and a target k, find the total number of contiguous subarrays whose sum equals k. Tests prefix sum and hash map patterns frequently seen at Meta.
Get the full picture with our company interview guides.