← back

Top Interview 150

150 questions · 0 seen · leetcode.com

LeetCode's curated list of 150 interview questions

Problems

1 Two Sum
2 Add Two Numbers
3 Longest Substring Without Repeating Characters
4 Median of Two Sorted Arrays
5 Longest Palindromic Substring
6 Zigzag Conversion
9 Palindrome Number
11 Container With Most Water
12 Integer to Roman
13 Roman to Integer
14 Longest Common Prefix
15 3Sum
17 Letter Combinations of a Phone Number
19 Remove Nth Node From End of List
20 Valid Parentheses
21 Merge Two Sorted Lists
22 Generate Parentheses
23 Merge k Sorted Lists
25 Reverse Nodes in k-Group
26 Remove Duplicates from Sorted Array
27 Remove Element
28 Find the Index of the First Occurrence in a String
30 Substring with Concatenation of All Words
33 Search in Rotated Sorted Array
34 Find First and Last Position of Element in Sorted Array
35 Search Insert Position
36 Valid Sudoku
39 Combination Sum
42 Trapping Rain Water
45 Jump Game II
46 Permutations
48 Rotate Image
49 Group Anagrams
50 Pow(x, n)
52 N-Queens II
53 Maximum Subarray
54 Spiral Matrix
55 Jump Game
56 Merge Intervals
57 Insert Interval
58 Length of Last Word
61 Rotate List
63 Unique Paths II
64 Minimum Path Sum
66 Plus One
67 Add Binary
68 Text Justification
69 Sqrt(x)
70 Climbing Stairs
71 Simplify Path
72 Edit Distance
73 Set Matrix Zeroes
74 Search a 2D Matrix
76 Minimum Window Substring
77 Combinations
79 Word Search
80 Remove Duplicates from Sorted Array II
82 Remove Duplicates from Sorted List II
86 Partition List
88 Merge Sorted Array
92 Reverse Linked List II
97 Interleaving String
98 Validate Binary Search Tree
100 Same Tree
101 Symmetric Tree
102 Binary Tree Level Order Traversal
103 Binary Tree Zigzag Level Order Traversal
104 Maximum Depth of Binary Tree
105 Construct Binary Tree from Preorder and Inorder Traversal
106 Construct Binary Tree from Inorder and Postorder Traversal
108 Convert Sorted Array to Binary Search Tree
112 Path Sum
114 Flatten Binary Tree to Linked List
117 Populating Next Right Pointers in Each Node II
120 Triangle
121 Best Time to Buy and Sell Stock
122 Best Time to Buy and Sell Stock II
123 Best Time to Buy and Sell Stock III
124 Binary Tree Maximum Path Sum
125 Valid Palindrome
127 Word Ladder
128 Longest Consecutive Sequence
129 Sum Root to Leaf Numbers
130 Surrounded Regions
133 Clone Graph
134 Gas Station
135 Candy
136 Single Number
137 Single Number II
138 Copy List with Random Pointer
139 Word Break
141 Linked List Cycle
146 LRU Cache
148 Sort List
149 Max Points on a Line
150 Evaluate Reverse Polish Notation
151 Reverse Words in a String
153 Find Minimum in Rotated Sorted Array
155 Min Stack
162 Find Peak Element
167 Two Sum II - Input Array Is Sorted
169 Majority Element
172 Factorial Trailing Zeroes
173 Binary Search Tree Iterator
188 Best Time to Buy and Sell Stock IV
189 Rotate Array
190 Reverse Bits
191 Number of 1 Bits
198 House Robber
199 Binary Tree Right Side View
200 Number of Islands
201 Bitwise AND of Numbers Range
202 Happy Number
205 Isomorphic Strings
207 Course Schedule
208 Implement Trie (Prefix Tree)
209 Minimum Size Subarray Sum
210 Course Schedule II
211 Design Add and Search Words Data Structure
212 Word Search II
215 Kth Largest Element in an Array
219 Contains Duplicate II
221 Maximal Square
222 Count Complete Tree Nodes
224 Basic Calculator
226 Invert Binary Tree
228 Summary Ranges
230 Kth Smallest Element in a BST
236 Lowest Common Ancestor of a Binary Tree
238 Product of Array Except Self
242 Valid Anagram
274 H-Index
289 Game of Life
290 Word Pattern
295 Find Median from Data Stream
300 Longest Increasing Subsequence
322 Coin Change
373 Find K Pairs with Smallest Sums
380 Insert Delete GetRandom O(1)
383 Ransom Note
392 Is Subsequence
399 Evaluate Division
427 Construct Quad Tree
433 Minimum Genetic Mutation
452 Minimum Number of Arrows to Burst Balloons
502 IPO
530 Minimum Absolute Difference in BST
637 Average of Levels in Binary Tree
909 Snakes and Ladders
918 Maximum Sum Circular Subarray