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- rain-water)
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- two-sorted-arrays)
sorted-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)
937 Reorder Data in Log Files (/articles/reorder-log- 53.9% Easy
(/problems/reorder-data-in-log- files)
files)
202 Happy Number (/articles/happy- 47.5% Easy
(/problems/happy-number) number)
56 Merge Intervals (/articles/merge- 37.3% Medium
(/problems/merge-intervals) intervals)
1007 Minimum Domino Rotations For (/articles/minimum- 50.9% Medium
Equal Row (/problems/minimum- domino-rotations-for-
domino-rotations-for-equal- equal-row)
row)
1192 Critical Connections in a Network 48.6% Hard
(/problems/critical-connections-
in-a-network)
289 Game of Life (/problems/game- (/articles/game-of- 49.5% Medium
of-life) life)
76 Minimum Window Substring (/articles/minimum- 32.6% Hard
(/problems/minimum-window- window-substring)
substring)
273 Integer to English Words (/articles/integer-to- 25.4% Hard
(/problems/integer-to-english- english-words)
words)
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- with-random-pointer)
random-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- sum-equals-k)
equals-k)
68 Text Justification (/problems/text- 25.0% Hard
justification)
121 Best Time to Buy and Sell Stock (/articles/best-time- 48.8% Easy
(/problems/best-time-to-buy- to-buy-and-sell-stock)
and-sell-stock)
394 Decode String 47.2% Medium
(/problems/decode-string)
269 Alien Dictionary (/problems/alien- 33.3% Hard
dictionary)
336 Palindrome Pairs 32.3% Hard
(/problems/palindrome-pairs)
49 Group Anagrams (/articles/group- 50.9% Medium
(/problems/group-anagrams) anagrams)
54 Spiral Matrix (/problems/spiral- (/articles/spiral- 32.1% Medium
matrix) matrix)
11 Container With Most Water (/articles/container- 47.8% Medium
(/problems/container-with-most- with-most-water)
water)
609 Find Duplicate File in System (/articles/find- 57.2% Medium
(/problems/find-duplicate-file-in- duplicate)
system)
973 K Closest Points to Origin (/articles/k-closest- 61.4% Medium
(/problems/k-closest-points-to- points-to-origin)
origin)
332 Reconstruct Itinerary 33.3% Medium
(/problems/reconstruct-
itinerary)
88 Merge Sorted Array (/articles/merge- 37.5% Easy
(/problems/merge-sorted- sorted-arrays)
array)
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)
380 Insert Delete GetRandom O(1) (/articles/insert- 44.5% Medium
(/problems/insert-delete- delete-getrandom-o1)
getrandom-o1)
17 Letter Combinations of a Phone (/articles/letter- 43.8% Medium
Number (/problems/letter- combinations-of-a-
combinations-of-a-phone- phone-number)
number)
953 Verifying an Alien Dictionary (/articles/verifying- 55.3% Easy
(/problems/verifying-an-alien- an-alien-dictionary)
dictionary)
7 Reverse Integer (/articles/reverse- 25.6% Easy
(/problems/reverse-integer) integer)
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)
539 Minimum Time Difference 49.9% Medium
(/problems/minimum-time-
difference)
46 Permutations 58.7% Medium
(/problems/permutations) (/articles/permutations)
981 Time Based Key-Value Store (/articles/time- 51.9% Medium
(/problems/time-based-key- based-key-value-store)
value-store)
91 Decode Ways 23.2% Medium
(/problems/decode-ways)
221 Maximal Square (/articles/maximal- 34.7% Medium
(/problems/maximal-square) square)
127 Word Ladder (/problems/word- (/articles/word- 26.5% Medium
ladder) ladder)
1130 Minimum Cost Tree From Leaf 62.8% Medium
Values (/problems/minimum-
cost-tree-from-leaf-values)
735 Asteroid Collision (/articles/asteroid- 39.4% Medium
(/problems/asteroid-collision) collision)
312 Burst Balloons (/problems/burst- (/articles/burst- 49.2% Hard
balloons) balloons)
393 UTF-8 Validation (/problems/utf- (/articles/utf-8- 36.6% Medium
8-validation) validation)
1181 Before and After Puzzle 43.8% Medium
(/problems/before-and-after-
puzzle)
741 Cherry Pickup (/problems/cherry- (/articles/cherry- 32.4% Hard
pickup) pickup)
166 Fraction to Recurring Decimal (/articles/fraction-to- 20.4% Medium
(/problems/fraction-to-recurring- recurring-decimal)
decimal)
642 Design Search Autocomplete (/articles/design- 41.3% Hard
System (/problems/design- search-autocomplete-
search-autocomplete-system) system)
218 The Skyline Problem (/articles/skyline- 32.9% Hard
(/problems/the-skyline- problem)
problem)
124 Binary Tree Maximum Path Sum (/articles/binary-tree- 31.7% Hard
(/problems/binary-tree- maximum-path-sum)
maximum-path-sum)
32 Longest Valid Parentheses (/articles/longest- 26.8% Hard
(/problems/longest-valid- valid-parentheses)
parentheses)
125 Valid Palindrome 33.2% Easy
(/problems/valid-palindrome)
139 Word Break (/problems/word- (/articles/word- 37.4% Medium
break) break)
13 Roman to Integer 53.8% Easy
(/problems/roman-to-integer)
412 Fizz Buzz (/problems/fizz-buzz) (/articles/fizz-buzz) 60.5% Easy
547 Friend Circles (/problems/friend- (/articles/friend- 56.0% Medium
circles) circles)
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- element-in-an-array)
in-an-array)
295 Find Median from Data Stream (/articles/find- 39.8% Hard
(/problems/find-median-from- median-from-data-
data-stream) stream)
341 Flatten Nested List Iterator 50.3% Medium
(/problems/flatten-nested-list-
iterator)
621 Task Scheduler (/problems/task- (/articles/task- 47.0% Medium
scheduler) scheduler)
759 Employee Free Time (/articles/employee- 63.4% Hard
(/problems/employee-free-time) free-time)
199 Binary Tree Right Side View (/articles/binary-tree- 50.5% Medium
(/problems/binary-tree-right-side- right-side-view)
view)
45 Jump Game II (/problems/jump- 29.2% Hard
game-ii)
1048 Longest String Chain 51.5% Medium
(/problems/longest-string-
chain)
460 LFU Cache (/problems/lfu- 31.3% Hard
cache)
212 Word Search II (/problems/word- (/articles/word- 31.0% Hard
search-ii) search-ii)
410 Split Array Largest Sum (/articles/split-array- 43.3% Hard
(/problems/split-array-largest- largest-sum)
sum)
227 Basic Calculator II 35.2% Medium
(/problems/basic-calculator-ii)
364 Nested List Weight Sum II 60.2% Medium
(/problems/nested-list-weight-
sum-ii)
362 Design Hit Counter 61.2% Medium
(/problems/design-hit-counter)
780 Reaching Points (/articles/reaching- 28.4% Hard
(/problems/reaching-points) points)
430 Flatten a Multilevel Doubly (/articles/flatten-a- 46.2% Medium
Linked List (/problems/flatten-a- multilevel-doubly-
multilevel-doubly-linked-list) linked-list)
158 Read N Characters Given Read4 29.4% Hard
II - Call multiple times
(/problems/read-n-characters-
given-read4-ii-call-multiple-
times)
24 Swap Nodes in Pairs 47.2% Medium
(/problems/swap-nodes-in-
pairs)
155 Min Stack (/problems/min- 39.8% Easy
stack)
48 Rotate Image (/problems/rotate- (/articles/rotate- 51.9% Medium
image) image)
344 Reverse String (/articles/reverse- 64.8% Easy
(/problems/reverse-string) string)
12 Integer to Roman 52.8% Medium
(/problems/integer-to-roman)
9 Palindrome Number 45.7% Easy
(/problems/palindrome- (/articles/palindrome-
number) number)
755 Pour Water (/problems/pour- (/articles/pour-water) 42.5% Medium
water)
1 2 3 4 5
100 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