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 SQL query to calculate conversion rate from the orders table, considering nulls and duplicates.
Design a distributed url shortening system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Write a SQL query to calculate average revenue from the sessions table, considering nulls and duplicates.
Design a geo-distributed order processing system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Given a 2D grid of '1's (land) and '0's (water), count the number of islands. Tests BFS/DFS on grids, one of Google's most frequently asked problems.
Design a high-throughput content delivery system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Meta values speed and iteration. Describe a situation where your bias toward action led to an unintended consequence, how you handled the fallout, and what you learned about balancing speed with quality.
Design a scalable payment system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a geo-distributed search system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a search system with typeahead autocomplete for Facebook. Cover indexing strategies, ranking algorithms, query processing, and how to suggest top 10 results based on character input, frequency, and social signals.
Design a high-throughput ride matching system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Given a binary tree and two nodes, find their lowest common ancestor. Meta frequently asks tree traversal problems to evaluate recursive thinking and edge case handling.
A query on sessions is running slowly. Identify the bottleneck and optimize it.
Design the ranking component of a search engine. Cover feature engineering from query-document pairs, learning-to-rank models, relevance scoring, freshness signals, and A/B testing the ranking pipeline.
Design a multi-tenant url shortening system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Design a URL shortening service like bit.ly. Cover hash generation strategies, database design for billions of URLs, redirect latency optimization, analytics tracking, and handling collisions.
Given an array of integers, write a function to optimize the inversion count by calculating the number of pairs (i, j) such that i < j and arr[i] > arr[j]. Your solution should be efficient and handle large input sizes, returning the inversion count as an integer. Additionally, provide a follow-up discussion on how the algorithm can be improved or modified for different scenarios.
Design a real-time load balancing system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Use the STAR method. Be specific about the situation at Walmart, your actions, and measurable outcomes.
Design a real-time task scheduling system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.
Get the full picture with our company interview guides.