Search question titles, description or IDs
Difficulty Status Lists Tags
# Title Solution Acceptance Difficulty Frequency
1 Two Sum (/problems/two-sum) (/articles/two-sum) 44.8% Easy
2 Add Two Numbers (/articles/add-two- 32.3% Medium
(/problems/add-two-numbers) numbers)
146 LRU Cache (/problems/lru- (/articles/lru-cache) 28.6% Medium
cache)
42 Trapping Rain Water (/articles/trapping- 45.8% Hard
(/problems/trapping-rain-water) rain-water)
5 Longest Palindromic Substring (/articles/longest- 28.3% Medium
(/problems/longest-palindromic- palindromic-substring)
substring)
4 Median of Two Sorted Arrays (/articles/median-of- 27.8% Hard
(/problems/median-of-two-sorted- two-sorted-arrays)
arrays)
200 Number of Islands (/articles/number-of- 43.8% Medium
(/problems/number-of-islands) islands)
15 3Sum (/problems/3sum) 25.3% Medium
53 Maximum Subarray (/articles/maximum- 45.1% Easy
(/problems/maximum-subarray) subarray)
3 Longest Substring Without (/articles/longest- 29.2% Medium
Repeating Characters substring-without-
(/problems/longest-substring- repeating-characters)
without-repeating-characters)
21 Merge Two Sorted Lists (/articles/merged- 50.1% Easy
(/problems/merge-two-sorted- two-sorted-lists)
lists)
20 Valid Parentheses (/articles/valid- 37.6% Easy
(/problems/valid-parentheses) parentheses)
238 Product of Array Except Self (/articles/product-of- 57.5% Medium
(/problems/product-of-array- array-except-self)
except-self)
23 Merge k Sorted Lists (/articles/merge-k- 37.1% Hard
(/problems/merge-k-sorted- sorted-list)
lists)
56 Merge Intervals (/problems/merge- (/articles/merge- 37.3% Medium
intervals) intervals)
76 Minimum Window Substring (/articles/minimum- 32.6% Hard
(/problems/minimum-window- window-substring)
substring)
206 Reverse Linked List (/articles/reverse- 58.1% Easy
(/problems/reverse-linked-list) linked-list)
301 Remove Invalid Parentheses (/articles/remove- 41.0% Hard
(/problems/remove-invalid- invalid-parentheses)
parentheses)
297 Serialize and Deserialize Binary (/articles/serialize- 43.9% Hard
Tree (/problems/serialize-and- and-deserialize-binary-
deserialize-binary-tree) tree)
22 Generate Parentheses (/articles/generate- 58.3% Medium
(/problems/generate- parentheses)
parentheses)
33 Search in Rotated Sorted Array (/articles/search-in- 33.4% Medium
(/problems/search-in-rotated- rotated-sorted-array)
sorted-array)
138 Copy List with Random Pointer (/articles/copy-list- 30.6% Medium
(/problems/copy-list-with-random- with-random-pointer)
pointer)
253 Meeting Rooms II (/articles/meeting- 44.1% Medium
(/problems/meeting-rooms-ii) rooms-ii)
560 Subarray Sum Equals K (/articles/subarray- 43.2% Medium
(/problems/subarray-sum-equals- sum-equals-k)
k)
121 Best Time to Buy and Sell Stock (/articles/best-time- 48.8% Easy
(/problems/best-time-to-buy-and- to-buy-and-sell-stock)
sell-stock)
394 Decode String 47.2% Medium
(/problems/decode-string)
49 Group Anagrams (/articles/group- 50.9% Medium
(/problems/group-anagrams) anagrams)
11 Container With Most Water (/articles/container- 47.8% Medium
(/problems/container-with-most- with-most-water)
water)
31 Next Permutation (/articles/next- 31.4% Medium
(/problems/next-permutation) permutation)
41 First Missing Positive (/articles/first- 30.2% Hard
(/problems/first-missing- missing-positive)
positive)
17 Letter Combinations of a Phone (/articles/letter- 43.8% Medium
Number (/problems/letter- combinations-of-a-
combinations-of-a-phone- phone-number)
number)
79 Word Search (/problems/word- 33.0% Medium
search)
322 Coin Change (/problems/coin- (/articles/coin- 32.6% Medium
change) change)
85 Maximal Rectangle (/articles/maximal- 35.2% Hard
(/problems/maximal-rectangle) rectangle)
10 Regular Expression Matching (/articles/regular- 25.9% Hard
(/problems/regular-expression- expression-matching)
matching)
46 Permutations 58.7% Medium
(/problems/permutations) (/articles/permutations)
221 Maximal Square (/articles/maximal- 34.7% Medium
(/problems/maximal-square) square)
312 Burst Balloons (/problems/burst- (/articles/burst- 49.2% Hard
balloons) balloons)
124 Binary Tree Maximum Path Sum (/articles/binary-tree- 31.7% Hard
(/problems/binary-tree-maximum- maximum-path-sum)
path-sum)
32 Longest Valid Parentheses (/articles/longest- 26.8% Hard
(/problems/longest-valid- valid-parentheses)
parentheses)
139 Word Break (/problems/word- (/articles/word-break) 37.4% Medium
break)
72 Edit Distance (/problems/edit- (/articles/edit- 40.3% Hard
distance) distance)
240 Search a 2D Matrix II (/articles/search-a- 41.9% Medium
(/problems/search-a-2d-matrix- 2d-matrix-ii)
ii)
215 Kth Largest Element in an Array (/articles/kth-largest- 51.0% Medium
(/problems/kth-largest-element-in- element-in-an-array)
an-array)
295 Find Median from Data Stream (/articles/find- 39.8% Hard
(/problems/find-median-from- median-from-data-
data-stream) stream)
621 Task Scheduler (/problems/task- (/articles/task- 47.0% Medium
scheduler) scheduler)
155 Min Stack (/problems/min- 39.8% Easy
stack)
48 Rotate Image (/problems/rotate- (/articles/rotate- 51.9% Medium
image) image)
98 Validate Binary Search Tree (/articles/validate- 26.7% Medium
(/problems/validate-binary-search- binary-search-tree)
tree)
283 Move Zeroes (/problems/move- (/articles/move- 55.7% Easy
zeroes) zeroes)
39 Combination Sum 51.9% Medium
(/problems/combination-sum)
236 Lowest Common Ancestor of a (/articles/lowest- 41.1% Medium
Binary Tree (/problems/lowest- common-ancestor-of-
common-ancestor-of-a-binary- a-binary-tree)
tree)
70 Climbing Stairs (/articles/climbing- 45.5% Easy
(/problems/climbing-stairs) stairs)
239 Sliding Window Maximum (/articles/sliding- 40.1% Hard
(/problems/sliding-window- window-maximum)
maximum)
34 Find First and Last Position of (/articles/find-first- 34.6% Medium
Element in Sorted Array and-last-position-
(/problems/find-first-and-last- element-sorted-array)
position-of-element-in-sorted-
array)
647 Palindromic Substrings 58.5% Medium
(/problems/palindromic- (/articles/palindromic-
substrings) substrings)
78 Subsets (/problems/subsets) 56.4% Medium
347 Top K Frequent Elements (/articles/top-k- 57.6% Medium
(/problems/top-k-frequent- frequent-elements)
elements)
300 Longest Increasing Subsequence (/articles/longest- 41.7% Medium
(/problems/longest-increasing- increasing-
subsequence) subsequence)
105 Construct Binary Tree from (/articles/construct- 44.3% Medium
Preorder and Inorder Traversal binary-tree-from-
(/problems/construct-binary-tree- preorder-and-inorder-tr)
from-preorder-and-inorder-
traversal)
739 Daily Temperatures (/articles/daily- 61.3% Medium
(/problems/daily-temperatures) temperatures)
438 Find All Anagrams in a String 39.4% Medium
(/problems/find-all-anagrams-in-a-
string)
128 Longest Consecutive Sequence (/articles/longest- 43.2% Hard
(/problems/longest-consecutive- consecutive-sequence)
sequence)
152 Maximum Product Subarray 30.4% Medium
(/problems/maximum-product-
subarray)
198 House Robber (/problems/house- (/articles/house- 41.5% Easy
robber) robber)
75 Sort Colors (/problems/sort- (/articles/sort-colors) 43.9% Medium
colors)
207 Course Schedule 40.0% Medium
(/problems/course-schedule)
148 Sort List (/problems/sort-list) 38.3% Medium
96 Unique Binary Search Trees (/articles/unique- 48.7% Medium
(/problems/unique-binary-search- binary-search-trees)
trees)
64 Minimum Path Sum (/articles/minimum- 49.6% Medium
(/problems/minimum-path-sum) path-sum)
543 Diameter of Binary Tree (/articles/diameter- 47.8% Easy
(/problems/diameter-of-binary- of-binary-tree)
tree)
84 Largest Rectangle in Histogram (/articles/largest- 32.8% Hard
(/problems/largest-rectangle-in- rectangle-in-histogram)
histogram)
19 Remove Nth Node From End of (/articles/remove- 34.6% Medium
List (/problems/remove-nth-node- nth-node-from-end-of-
from-end-of-list) list)
234 Palindrome Linked List (/articles/palindrome- 37.4% Easy
(/problems/palindrome-linked- linked-list)
list)
102 Binary Tree Level Order Traversal (/articles/binary-tree- 51.0% Medium
(/problems/binary-tree-level-order- level-order-traversal)
traversal)
208 Implement Trie (Prefix Tree) (/articles/implement- 42.2% Medium
(/problems/implement-trie-prefix- trie-prefix-tree)
tree)
136 Single Number (/problems/single- (/articles/single- 62.1% Easy
number) number)
169 Majority Element (/articles/majority- 54.9% Easy
(/problems/majority-element) element)
309 Best Time to Buy and Sell Stock 45.2% Medium
with Cooldown (/problems/best-
time-to-buy-and-sell-stock-with-
cooldown)
406 Queue Reconstruction by Height (/articles/queue- 61.7% Medium
(/problems/queue-reconstruction- reconstruction-by-
by-height) height)
141 Linked List Cycle (/articles/linked-list- 38.8% Easy
(/problems/linked-list-cycle) cycle)
62 Unique Paths (/problems/unique- 50.2% Medium
paths)
101 Symmetric Tree (/articles/symmetric- 45.0% Easy
(/problems/symmetric-tree) tree)
416 Partition Equal Subset Sum 41.9% Medium
(/problems/partition-equal-subset-
sum)
160 Intersection of Two Linked Lists 36.6% Easy
(/problems/intersection-of-two- (/articles/intersection-
linked-lists) of-two-linked-lists)
287 Find the Duplicate Number (/articles/find-the- 51.7% Medium
(/problems/find-the-duplicate- duplicate-number)
number)
114 Flatten Binary Tree to Linked List 45.2% Medium
(/problems/flatten-binary-tree-to-
linked-list)
437 Path Sum III (/problems/path- 44.2% Easy
sum-iii)
104 Maximum Depth of Binary Tree (/articles/maximum- 63.0% Easy
(/problems/maximum-depth-of- depth-of-binary-tree)
binary-tree)
279 Perfect Squares (/articles/perfect- 43.5% Medium
(/problems/perfect-squares) squares)
55 Jump Game (/problems/jump- (/articles/jump-game) 32.9% Medium
game)
448 Find All Numbers Disappeared in (/articles/find-all- 54.6% Easy
an Array (/problems/find-all- numbers-disappeared-
numbers-disappeared-in-an- in-an-array)
array)
94 Binary Tree Inorder Traversal (/articles/binary-tree- 59.6% Medium
(/problems/binary-tree-inorder- inorder-traversal)
traversal)
226 Invert Binary Tree (/articles/invert- 60.5% Easy
(/problems/invert-binary-tree) binary-tree)
494 Target Sum (/problems/target- (/articles/target-sum) 46.0% Medium
sum)
617 Merge Two Binary Trees (/articles/merge-two- 71.8% Easy
(/problems/merge-two-binary- binary-trees)
trees)
581 Shortest Unsorted Continuous (/articles/shortest- 30.6% Easy
Subarray (/problems/shortest- unsorted-continous-
unsorted-continuous-subarray) subarray)
142 Linked List Cycle II (/articles/linked-list- 34.3% Medium
(/problems/linked-list-cycle-ii) cycle-ii)
337 House Robber III 49.3% Medium
(/problems/house-robber-iii)
338 Counting Bits (/articles/counting- 66.1% Medium
(/problems/counting-bits) bits)
all rows per page.
Topics
Array 206 (/tag/array/) Dynamic Programming 170 (/tag/dynamic-programming/) Math 159 (/tag/math/)
String 149 (/tag/string/) Tree 123 (/tag/tree/) Hash Table 121 (/tag/hash-table/)
Depth-first Search 113 (/tag/depth-first-search/) Binary Search 79 (/tag/binary-search/) Greedy 66 (/tag/greedy/)
Two Pointers 60 (/tag/two-pointers/) Breadth-first Search 58 (/tag/breadth-first-search/) Stack 54 (/tag/stack/)
Backtracking 50 (/tag/backtracking/) Design 42 (/tag/design/) Bit Manipulation 38 (/tag/bit-manipulation/)
Sort 38 (/tag/sort/) Graph 37 (/tag/graph/) Linked List 36 (/tag/linked-list/) Heap 34 (/tag/heap/)
Show More
Companies
Google 740 (/company/google/) Amazon 599 (/company/amazon/) Facebook 450 (/company/facebook/)
Microsoft 393 (/company/microsoft/) Uber 268 (/company/uber/) Apple 260 (/company/apple/)
Bloomberg 251 (/company/bloomberg/) Adobe 170 (/company/adobe/) LinkedIn 141 (/company/linkedin/)
Oracle 113 (/company/oracle/) Yahoo 106 (/company/yahoo/) Snapchat 83 (/company/snapchat/)
Goldman Sachs 81 (/company/goldman-sachs/) Twitter 79 (/company/twitter/) Walmart Labs 66 (/company/walmart-labs/)
Airbnb 64 (/company/airbnb/) eBay 61 (/company/ebay/) VMware 58 (/company/vmware/)
Salesforce 56 (/company/salesforce/) Alibaba 55 (/company/alibaba/) Lyft 51 (/company/lyft/)
Cisco 48 (/company/cisco/) Yelp 47 (/company/yelp/) ByteDance 45 (/company/bytedance/)
Expedia 42 (/company/expedia/) Baidu 41 (/company/baidu/) Paypal 37 (/company/paypal/)
Mathworks 35 (/company/mathworks/) Pinterest 35 (/company/pinterest/) Zillow 33 (/company/zillow/)
Yandex 32 (/company/yandex/) SAP 31 (/company/sap/) Visa 31 (/company/visa/) Tencent 30 (/company/tencent/)
Atlassian 29 (/company/atlassian/) Intuit 26 (/company/intuit/) Quora 25 (/company/quora/)
Nutanix 24 (/company/nutanix/) Zenefits 24 (/company/zenefits/) Dropbox 23 (/company/dropbox/)
Pocket Gems 21 (/company/pocket-gems/) Qualtrics 21 (/company/qualtrics/) Wish 21 (/company/wish/)
Citadel 20 (/company/citadel/) Palantir Technologies 20 (/company/palantir-technologies/) Indeed 19 (/company/indeed/)
Square 19 (/company/square/) GoDaddy 18 (/company/godaddy/) Hulu 18 (/company/hulu/)
JPMorgan 18 (/company/jpmorgan/) Samsung 18 (/company/samsung/) Two Sigma 18 (/company/two-sigma/)
Wayfair 18 (/company/wayfair/) Akuna Capital 17 (/company/akuna-capital/) Coursera 17 (/company/coursera/)
Houzz 17 (/company/houzz/) TripAdvisor 17 (/company/tripadvisor/)
Show More
Copyright © 2019 LeetCode
Help Center (/support/) | Terms (/terms/) | Privacy Policy (/privacy/)
United States (/region/)