← back

Most Popular

150 questions · 0 seen

The 150 most upvoted problems on LeetCode

Problems

1 Two Sum
3 Longest Substring Without Repeating Characters
53 Maximum Subarray
2 Add Two Numbers
42 Trapping Rain Water
121 Best Time to Buy and Sell Stock
15 3Sum
11 Container With Most Water
5 Longest Palindromic Substring
4 Median of Two Sorted Arrays
33 Search in Rotated Sorted Array
20 Valid Parentheses
238 Product of Array Except Self
287 Find the Duplicate Number
560 Subarray Sum Equals K
200 Number of Islands
21 Merge Two Sorted Lists
56 Merge Intervals
70 Climbing Stairs
206 Reverse Linked List
198 House Robber
34 Find First and Last Position of Element in Sorted Array
22 Generate Parentheses
146 LRU Cache
128 Longest Consecutive Sequence
300 Longest Increasing Subsequence
169 Majority Element
49 Group Anagrams
55 Jump Game
75 Sort Colors
31 Next Permutation
23 Merge k Sorted Lists
14 Longest Common Prefix
19 Remove Nth Node From End of List
189 Rotate Array
39 Combination Sum
322 Coin Change
17 Letter Combinations of a Phone Number
46 Permutations
152 Maximum Product Subarray
239 Sliding Window Maximum
76 Minimum Window Substring
48 Rotate Image
84 Largest Rectangle in Histogram
347 Top K Frequent Elements
283 Move Zeroes
78 Subsets
26 Remove Duplicates from Sorted Array
88 Merge Sorted Array
136 Single Number
215 Kth Largest Element in an Array
35 Search Insert Position
139 Word Break
236 Lowest Common Ancestor of a Binary Tree
124 Binary Tree Maximum Path Sum
41 First Missing Positive
98 Validate Binary Search Tree
62 Unique Paths
234 Palindrome Linked List
207 Course Schedule
74 Search a 2D Matrix
79 Word Search
13 Roman to Integer
141 Linked List Cycle
54 Spiral Matrix
73 Set Matrix Zeroes
102 Binary Tree Level Order Traversal
101 Symmetric Tree
105 Construct Binary Tree from Preorder and Inorder Traversal
160 Intersection of Two Linked Lists
45 Jump Game II
72 Edit Distance
155 Min Stack
9 Palindrome Number
543 Diameter of Binary Tree
25 Reverse Nodes in k-Group
138 Copy List with Random Pointer
7 Reverse Integer
122 Best Time to Buy and Sell Stock II
226 Invert Binary Tree
153 Find Minimum in Rotated Sorted Array
142 Linked List Cycle II
994 Rotting Oranges
1143 Longest Common Subsequence
118 Pascal's Triangle
94 Binary Tree Inorder Traversal
739 Daily Temperatures
162 Find Peak Element
209 Minimum Size Subarray Sum
104 Maximum Depth of Binary Tree
51 N-Queens
242 Valid Anagram
131 Palindrome Partitioning
268 Missing Number
394 Decode String
217 Contains Duplicate
416 Partition Equal Subset Sum
114 Flatten Binary Tree to Linked List
64 Minimum Path Sum
875 Koko Eating Bananas
127 Word Ladder
134 Gas Station
167 Two Sum II - Input Array Is Sorted
704 Binary Search
199 Binary Tree Right Side View
32 Longest Valid Parentheses
10 Regular Expression Matching
438 Find All Anagrams in a String
876 Middle of the Linked List
295 Find Median from Data Stream
24 Swap Nodes in Pairs
240 Search a 2D Matrix II
148 Sort List
567 Permutation in String
540 Single Element in a Sorted Array
424 Longest Repeating Character Replacement
92 Reverse Linked List II
91 Decode Ways
100 Same Tree
18 4Sum
230 Kth Smallest Element in a BST
143 Reorder List
36 Valid Sudoku
208 Implement Trie (Prefix Tree)
494 Target Sum
746 Min Cost Climbing Stairs
235 Lowest Common Ancestor of a Binary Search Tree
40 Combination Sum II
110 Balanced Binary Tree
863 All Nodes Distance K in Binary Tree
85 Maximal Rectangle
103 Binary Tree Zigzag Level Order Traversal
338 Counting Bits
210 Course Schedule II
437 Path Sum III
108 Convert Sorted Array to Binary Search Tree
202 Happy Number
279 Perfect Squares
57 Insert Interval
66 Plus One
621 Task Scheduler
50 Pow(x, n)
16 3Sum Closest
125 Valid Palindrome
647 Palindromic Substrings
328 Odd Even Linked List
410 Split Array Largest Sum
763 Partition Labels
61 Rotate List
787 Cheapest Flights Within K Stops