grindmapcompany-wise LeetCode
All companies

Meta LeetCode Questions

100 questions all-time · 23 easy · 61 medium · 16 hard
# Problem Difficulty Frequency Acceptance
1Merge Sorted Array
Array, Two Pointers, Sorting
Easy
88
52.9%
2Pow(x, n)
Math, Recursion
Medium
87
37.0%
3Simplify Path
String, Stack
Medium
86
47.9%
4Merge Intervals
Array, Sorting
Medium
85
49.4%
5Two Sum
Array, Hash Table
Easy
84
55.8%
6Next Permutation
Array, Two Pointers
Medium
78
43.1%
7Merge k Sorted Lists
Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort
Hard
77
56.8%
83Sum
Array, Two Pointers, Sorting
Medium
77
37.1%
9Find First and Last Position of Element in Sorted Array
Array, Binary Search
Medium
72
46.8%
10Valid Parentheses
String, Stack
Easy
71
42.3%
11Valid Number
String
Hard
70
21.6%
12Minimum Window Substring
Hash Table, String, Sliding Window
Hard
69
45.4%
13Longest Common Prefix
String, Trie
Easy
67
45.5%
14Add Two Numbers
Linked List, Math, Recursion
Medium
65
46.2%
15Letter Combinations of a Phone Number
Hash Table, String, Backtracking
Medium
64
63.9%
16Subsets
Array, Backtracking, Bit Manipulation
Medium
64
80.9%
17Remove Nth Node From End of List
Linked List, Two Pointers
Medium
64
49.0%
18Longest Substring Without Repeating Characters
Hash Table, String, Sliding Window
Medium
63
36.9%
19Trapping Rain Water
Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack
Hard
61
65.1%
20String to Integer (atoi)
String
Medium
60
19.2%
21Longest Palindromic Substring
Two Pointers, String, Dynamic Programming
Medium
59
35.8%
22Remove Duplicates from Sorted Array
Array, Two Pointers
Easy
59
60.4%
23Median of Two Sorted Arrays
Array, Binary Search, Divide and Conquer
Hard
58
43.8%
24Palindrome Number
Math
Easy
57
59.2%
25Search in Rotated Sorted Array
Array, Binary Search
Medium
57
42.8%
26Roman to Integer
Hash Table, Math, String
Easy
56
64.9%
27Merge Two Sorted Lists
Linked List, Recursion
Easy
54
66.8%
28Group Anagrams
Array, Hash Table, String, Sorting
Medium
54
70.9%
29Count and Say
String
Medium
53
60.5%
30Climbing Stairs
Math, Dynamic Programming, Memoization
Easy
53
53.5%
31Maximum Subarray
Array, Divide and Conquer, Dynamic Programming
Medium
52
52.1%
32Container With Most Water
Array, Two Pointers, Greedy
Medium
52
57.8%
33Set Matrix Zeroes
Array, Hash Table, Matrix
Medium
51
60.7%
34Sort Colors
Array, Two Pointers, Sorting
Medium
51
67.6%
35Add Binary
Math, String, Bit Manipulation, Simulation
Easy
51
55.7%
36Multiply Strings
Math, String, Simulation
Medium
50
42.3%
37Reverse Integer
Math
Medium
49
30.3%
38Word Search
Array, String, Backtracking, Depth-First Search, Matrix
Medium
48
45.3%
39Plus One
Array, Math
Easy
48
47.5%
40Generate Parentheses
String, Dynamic Programming, Backtracking
Medium
48
77.1%
41Rotate Image
Array, Math, Matrix
Medium
47
77.9%
42Spiral Matrix
Array, Matrix, Simulation
Medium
47
53.9%
43Regular Expression Matching
String, Dynamic Programming, Recursion
Hard
46
29.3%
44Insert Interval
Array
Medium
45
43.5%
45Find the Index of the First Occurrence in a String
Two Pointers, String, String Matching
Easy
45
45.0%
46Sqrt(x)
Math, Binary Search
Easy
44
40.4%
47Search a 2D Matrix
Array, Binary Search, Matrix
Medium
43
52.3%
48Binary Tree Zigzag Level Order Traversal
Tree, Breadth-First Search, Binary Tree
Medium
43
61.7%
49Divide Two Integers
Math, Bit Manipulation
Medium
43
18.4%
50Largest Rectangle in Histogram
Array, Stack, Monotonic Stack
Hard
43
47.4%
51Binary Tree Level Order Traversal
Tree, Breadth-First Search, Binary Tree
Medium
43
70.6%
52Remove Duplicates from Sorted Array II
Array, Two Pointers
Medium
42
62.9%
53Unique Paths
Math, Dynamic Programming, Combinatorics
Medium
42
65.8%
54Remove Element
Array, Two Pointers
Easy
42
60.0%
55Jump Game
Array, Dynamic Programming, Greedy
Medium
42
39.5%
56Text Justification
Array, String, Simulation
Hard
41
48.1%
57Validate Binary Search Tree
Tree, Depth-First Search, Binary Search Tree, Binary Tree
Medium
41
34.4%
583Sum Closest
Array, Two Pointers, Sorting
Medium
40
46.9%
59Decode Ways
String, Dynamic Programming
Medium
40
36.5%
60Combination Sum
Array, Backtracking
Medium
40
74.7%
61Subsets II
Array, Backtracking, Bit Manipulation
Medium
37
59.5%
624Sum
Array, Two Pointers, Sorting
Medium
37
38.2%
63Maximal Rectangle
Array, Dynamic Programming, Stack, Matrix, Monotonic Stack
Hard
37
53.7%
64Valid Sudoku
Array, Hash Table, Matrix
Medium
37
62.3%
65Permutations
Array, Backtracking
Medium
36
80.7%
66Reverse Nodes in k-Group
Linked List, Recursion
Hard
36
63.0%
67Zigzag Conversion
String
Medium
36
51.6%
68First Missing Positive
Array, Hash Table
Hard
35
41.1%
69Wildcard Matching
String, Dynamic Programming, Greedy, Recursion
Hard
35
29.9%
70Binary Tree Inorder Traversal
Stack, Tree, Depth-First Search, Binary Tree
Easy
35
78.6%
71Minimum Depth of Binary Tree
Tree, Depth-First Search, Breadth-First Search, Binary Tree
Easy
35
50.7%
72Combination Sum II
Array, Backtracking
Medium
35
57.7%
73Unique Paths II
Array, Dynamic Programming, Matrix
Medium
35
43.2%
74N-Queens
Array, Backtracking
Hard
34
72.8%
75Construct Binary Tree from Preorder and Inorder Traversal
Array, Hash Table, Divide and Conquer, Tree, Binary Tree
Medium
34
66.8%
76Search Insert Position
Array, Binary Search
Easy
34
49.0%
77Jump Game II
Array, Dynamic Programming, Greedy
Medium
34
41.5%
78Rotate List
Linked List, Two Pointers
Medium
33
39.9%
79Search in Rotated Sorted Array II
Array, Binary Search
Medium
33
38.9%
80Maximum Depth of Binary Tree
Tree, Depth-First Search, Breadth-First Search, Binary Tree
Easy
32
77.1%
81Reverse Linked List II
Linked List
Medium
32
49.6%
82Edit Distance
String, Dynamic Programming
Medium
32
58.8%
83Length of Last Word
String
Easy
32
56.3%
84Sudoku Solver
Array, Hash Table, Backtracking, Matrix
Hard
31
63.9%
85Symmetric Tree
Tree, Depth-First Search, Breadth-First Search, Binary Tree
Easy
31
59.3%
86Convert Sorted List to Binary Search Tree
Linked List, Divide and Conquer, Tree, Binary Search Tree, Binary Tree
Medium
27
64.5%
87Restore IP Addresses
String, Backtracking
Medium
27
53.2%
88Longest Valid Parentheses
String, Dynamic Programming, Stack
Hard
27
36.3%
89Same Tree
Tree, Depth-First Search, Breadth-First Search, Binary Tree
Easy
26
65.1%
90Integer to Roman
Hash Table, Math, String
Medium
26
68.6%
91Swap Nodes in Pairs
Linked List, Recursion
Medium
26
67.2%
92Combinations
Backtracking
Medium
24
72.9%
93Convert Sorted Array to Binary Search Tree
Array, Divide and Conquer, Tree, Binary Search Tree, Binary Tree
Easy
22
74.1%
94Minimum Path Sum
Array, Dynamic Programming, Matrix
Medium
22
66.5%
95Balanced Binary Tree
Tree, Depth-First Search, Binary Tree
Easy
22
55.3%
96Permutations II
Array, Backtracking, Sorting
Medium
18
61.6%
97Unique Binary Search Trees II
Dynamic Programming, Backtracking, Tree, Binary Search Tree, Binary Tree
Medium
16
60.4%
98Substring with Concatenation of All Words
Hash Table, String, Sliding Window
Hard
16
33.0%
99Spiral Matrix II
Array, Matrix, Simulation
Medium
14
73.4%
100Binary Tree Level Order Traversal II
Tree, Breadth-First Search, Binary Tree
Medium
8
66.0%

How to read this list

The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.

Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.