You are on page 1of 14

  Top 100 Liked Questions

New

Algorithms Database Shell Concurrency

(/problemset/algorithms/)
(/problemset/database/)
(/problemset/shell/) (/problemset/concurrency/)

All Problems
(/problemset/all/)

  Top 100 Liked Questions


(/problemset/top-100-liked-questions/)

  Top Amazon Questions 


(/problemset/top-amazon-questions/)

  Top Facebook Questions 


(/problemset/top-facebook-questions/)

  Top Google Questions 


(/problemset/top-google-questions/)

  Top Interview Questions


(/problemset/top-interview-questions/)

  Top LinkedIn Questions 


(/problemset/top-linkedin-questions/)

  Contribute Question
(/contribute/)

93/100 Solved  -  Easy 22   Medium 55   Hard 16 Pick One  (/problems/random-one-question/top-100-liked-questions)


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.9% Easy

 2 Add Two Numbers  (/articles/add-two- 32.4% Medium


(/problems/add-two-numbers)     numbers)

 42 Trapping Rain Water  (/articles/trapping- 46.1% Hard


(/problems/trapping-rain-water)     rain-water)

 146 LRU Cache (/problems/lru-  (/articles/lru-cache) 29.0% Medium


cache)    

 5 Longest Palindromic Substring  (/articles/longest- 28.5% Medium


(/problems/longest-palindromic- palindromic-substring)
substring)    

 200 Number of Islands  (/articles/number-of- 44.1% Medium


(/problems/number-of-islands)     islands)

 4 Median of Two Sorted Arrays  (/articles/median-of- 28.0% Hard


(/problems/median-of-two- two-sorted-arrays)
sorted-arrays)    

 20 Valid Parentheses  (/articles/valid- 37.7% Easy


(/problems/valid-parentheses)     parentheses)

 15 3Sum (/problems/3sum)     25.4% Medium

 3 Longest Substring Without  (/articles/longest- 29.3% Medium


Repeating Characters substring-without-
(/problems/longest-substring- repeating-characters)
without-repeating-characters)    
# Title Solution Acceptance Difficulty Frequency  

 53 Maximum Subarray  (/articles/maximum- 45.3% Easy


(/problems/maximum- subarray)
subarray)    

 21 Merge Two Sorted Lists  (/articles/merged- 50.4% Easy


(/problems/merge-two-sorted- two-sorted-lists)
lists)    

 238 Product of Array Except Self  (/articles/product-of- 57.8% Medium


(/problems/product-of-array- array-except-self)
except-self)    

 23 Merge k Sorted Lists  (/articles/merge-k- 37.4% Hard


(/problems/merge-k-sorted- sorted-list)
lists)    

 76 Minimum Window Substring  (/articles/minimum- 32.8% Hard


(/problems/minimum-window- window-substring)
substring)     

 56 Merge Intervals  (/articles/merge- 37.5% Medium


(/problems/merge-intervals)     intervals)

 138 Copy List with Random Pointer  (/articles/copy-list- 31.2% Medium


(/problems/copy-list-with- with-random-pointer)
random-pointer)    

 301 Remove Invalid Parentheses  (/articles/remove- 41.2% Hard


(/problems/remove-invalid- invalid-parentheses)
parentheses)    

 206 Reverse Linked List  (/articles/reverse- 58.5% Easy


(/problems/reverse-linked-list)     linked-list)
# Title Solution Acceptance Difficulty Frequency  

 297 Serialize and Deserialize Binary  (/articles/serialize- 44.2% Hard


Tree (/problems/serialize-and- and-deserialize-binary-
deserialize-binary-tree)     tree)

 560 Subarray Sum Equals K  (/articles/subarray- 43.3% Medium


(/problems/subarray-sum-equals- sum-equals-k)
k)    

 253 Meeting Rooms II  (/articles/meeting- 44.3% Medium


(/problems/meeting-rooms-ii)     rooms-ii)

 22 Generate Parentheses  (/articles/generate- 58.6% Medium


(/problems/generate- parentheses)
parentheses)    

 121 Best Time to Buy and Sell Stock  (/articles/best-time- 48.9% Easy
(/problems/best-time-to-buy- to-buy-and-sell-stock)
and-sell-stock)    

 33 Search in Rotated Sorted Array  (/articles/search-in- 33.5% Medium


(/problems/search-in-rotated- rotated-sorted-array)
sorted-array)     

 394 Decode String 47.5% Medium


(/problems/decode-string)    

 49 Group Anagrams  (/articles/group- 51.4% Medium


(/problems/group-anagrams)     anagrams)

 11 Container With Most Water  (/articles/container- 48.1% Medium


(/problems/container-with-most- with-most-water)
water)    

 31 Next Permutation  (/articles/next- 31.5% Medium


(/problems/next-permutation)     permutation)
# Title Solution Acceptance Difficulty Frequency  

 322 Coin Change (/problems/coin-  (/articles/coin- 32.9% Medium


change)     change)

 124 Binary Tree Maximum Path Sum  (/articles/binary-tree- 31.8% Hard


(/problems/binary-tree-maximum- maximum-path-sum)
path-sum)    

 139 Word Break (/problems/word-  (/articles/word- 37.6% Medium


break)     break)

 240 Search a 2D Matrix II  (/articles/search-a- 42.1% Medium


(/problems/search-a-2d-matrix- 2d-matrix-ii)
ii)    

 17 Letter Combinations of a Phone  (/articles/letter- 44.1% Medium


Number (/problems/letter- combinations-of-a-
combinations-of-a-phone- phone-number)
number)    

 79 Word Search (/problems/word- 33.1% Medium


search)    

 41 First Missing Positive  (/articles/first- 30.4% Hard


(/problems/first-missing- missing-positive)
positive)    

 85 Maximal Rectangle  (/articles/maximal- 35.4% Hard


(/problems/maximal-rectangle)     rectangle)

 10 Regular Expression Matching  (/articles/regular- 26.0% Hard


(/problems/regular-expression- expression-matching)
matching)    

 46 Permutations  59.1% Medium


(/problems/permutations)     (/articles/permutations)
# Title Solution Acceptance Difficulty Frequency  

 32 Longest Valid Parentheses  (/articles/longest- 26.9% Hard


(/problems/longest-valid- valid-parentheses)
parentheses)    

221 Maximal Square  (/articles/maximal- 34.8% Medium


(/problems/maximal-square)     square)

312 Burst Balloons (/problems/burst-  (/articles/burst- 49.4% Hard


balloons)      balloons)

 215 Kth Largest Element in an Array  (/articles/kth-largest- 51.4% Medium


(/problems/kth-largest-element- element-in-an-array)
in-an-array)    

 295 Find Median from Data Stream  (/articles/find- 40.2% Hard


(/problems/find-median-from- median-from-data-
data-stream)      stream)

 98 Validate Binary Search Tree  (/articles/validate- 26.8% Medium


(/problems/validate-binary- binary-search-tree)
search-tree)    

 72 Edit Distance (/problems/edit-  (/articles/edit- 40.5% Hard


distance)     distance)

 239 Sliding Window Maximum  (/articles/sliding- 40.2% Hard


(/problems/sliding-window- window-maximum)
maximum)    

 621 Task Scheduler (/problems/task-  (/articles/task- 47.1% Medium


scheduler)     scheduler)

 48 Rotate Image (/problems/rotate-  (/articles/rotate- 52.3% Medium


image)     image)
# Title Solution Acceptance Difficulty Frequency  

 283 Move Zeroes (/problems/move-  (/articles/move- 55.8% Easy


zeroes)     zeroes)

 155 Min Stack (/problems/min- 40.1% Easy


stack)    

 128 Longest Consecutive Sequence  (/articles/longest- 43.4% Hard


(/problems/longest-consecutive- consecutive-sequence)
sequence)    

 39 Combination Sum 52.2% Medium


(/problems/combination-sum)    

 78 Subsets (/problems/subsets)     56.8% Medium

 70 Climbing Stairs  (/articles/climbing- 45.7% Easy


(/problems/climbing-stairs)     stairs)

 34 Find First and Last Position of  (/articles/find-first- 34.7% Medium


Element in Sorted Array and-last-position-
(/problems/find-first-and-last- element-sorted-array)
position-of-element-in-sorted-
array)     

 236 Lowest Common Ancestor of a  (/articles/lowest- 41.4% Medium


Binary Tree (/problems/lowest- common-ancestor-of-
common-ancestor-of-a-binary- a-binary-tree)
tree)    

 347 Top K Frequent Elements  (/articles/top-k- 58.0% Medium


(/problems/top-k-frequent- frequent-elements)
elements)    
# Title Solution Acceptance Difficulty Frequency  

 105 Construct Binary Tree from  (/articles/construct- 44.7% 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.5% Medium


(/problems/daily-temperatures)     temperatures)

 647 Palindromic Substrings  58.7% Medium


(/problems/palindromic- (/articles/palindromic-
substrings)     substrings)

 543 Diameter of Binary Tree  (/articles/diameter- 48.0% Easy


(/problems/diameter-of-binary- of-binary-tree)
tree)    

 300 Longest Increasing Subsequence  (/articles/longest- 41.8% Medium


(/problems/longest-increasing- increasing-
subsequence)     subsequence)

 438 Find All Anagrams in a String 39.6% Medium


(/problems/find-all-anagrams-in-
a-string)    

 198 House Robber (/problems/house-  (/articles/house- 41.5% Easy


robber)     robber)

 207 Course Schedule 40.2% Medium


(/problems/course-schedule)    

 64 Minimum Path Sum  (/articles/minimum- 49.9% Medium


(/problems/minimum-path- path-sum)
sum)    
# Title Solution Acceptance Difficulty Frequency  

 84 Largest Rectangle in Histogram  (/articles/largest- 33.0% Hard


(/problems/largest-rectangle-in- rectangle-in-histogram)
histogram)    

 152 Maximum Product Subarray 30.5% Medium


(/problems/maximum-product-
subarray)    

 75 Sort Colors (/problems/sort-  (/articles/sort-colors) 44.1% Medium


colors)    

 208 Implement Trie (Prefix Tree)  (/articles/implement- 42.6% Medium


(/problems/implement-trie-prefix- trie-prefix-tree)
tree)    

 102 Binary Tree Level Order Traversal  (/articles/binary-tree- 51.3% Medium


(/problems/binary-tree-level- level-order-traversal)
order-traversal)    

 234 Palindrome Linked List  37.5% Easy


(/problems/palindrome-linked- (/articles/palindrome-
list)     linked-list)

 136 Single Number (/problems/single-  (/articles/single- 62.3% Easy


number)     number)

148 Sort List (/problems/sort-list)     38.6% Medium

 62 Unique Paths (/problems/unique- 50.4% Medium


paths)    

406 Queue Reconstruction by Height  (/articles/queue- 61.9% Medium


(/problems/queue-reconstruction- reconstruction-by-
by-height)     height)
# Title Solution Acceptance Difficulty Frequency  

 19 Remove Nth Node From End of  (/articles/remove- 34.7% Medium


List (/problems/remove-nth- nth-node-from-end-of-
node-from-end-of-list)     list)

 416 Partition Equal Subset Sum 42.0% Medium


(/problems/partition-equal-
subset-sum)    

 96 Unique Binary Search Trees  (/articles/unique- 48.9% Medium


(/problems/unique-binary-search- binary-search-trees)
trees)    

309 Best Time to Buy and Sell Stock 45.3% Medium


with Cooldown (/problems/best-
time-to-buy-and-sell-stock-with-
cooldown)     

 114 Flatten Binary Tree to Linked List 45.5% Medium


(/problems/flatten-binary-tree-to-
linked-list)    

 101 Symmetric Tree  (/articles/symmetric- 45.2% Easy


(/problems/symmetric-tree)     tree)

 141 Linked List Cycle  (/articles/linked-list- 39.0% Easy


(/problems/linked-list-cycle)     cycle)

 287 Find the Duplicate Number  (/articles/find-the- 51.9% Medium


(/problems/find-the-duplicate- duplicate-number)
number)    

 279 Perfect Squares  (/articles/perfect- 43.8% Medium


(/problems/perfect-squares)      squares)
# Title Solution Acceptance Difficulty Frequency  

 169 Majority Element  (/articles/majority- 55.2% Easy


(/problems/majority-element)     element)

437 Path Sum III (/problems/path- 44.4% Easy


sum-iii)    

 94 Binary Tree Inorder Traversal  (/articles/binary-tree- 59.9% Medium


(/problems/binary-tree-inorder- inorder-traversal)
traversal)    

 160 Intersection of Two Linked Lists  37.0% Easy


(/problems/intersection-of-two- (/articles/intersection-
linked-lists)     of-two-linked-lists)

 226 Invert Binary Tree  (/articles/invert- 60.8% Easy


(/problems/invert-binary-tree)     binary-tree)

 104 Maximum Depth of Binary Tree  (/articles/maximum- 63.3% Easy


(/problems/maximum-depth-of- depth-of-binary-tree)
binary-tree)    

 55 Jump Game (/problems/jump-  (/articles/jump-game) 32.9% Medium


game)    

 448 Find All Numbers Disappeared in  (/articles/find-all- 54.7% Easy


an Array (/problems/find-all- numbers-disappeared-
numbers-disappeared-in-an- in-an-array)
array)    

 617 Merge Two Binary Trees  (/articles/merge-two- 72.0% Easy


(/problems/merge-two-binary- binary-trees)
trees)    

 337 House Robber III 49.4% Medium


(/problems/house-robber-iii)    
# Title Solution Acceptance Difficulty Frequency  

494 Target Sum (/problems/target-  (/articles/target-sum) 46.1% Medium


sum)    

 581 Shortest Unsorted Continuous  (/articles/shortest- 30.6% Easy


Subarray (/problems/shortest- unsorted-continous-
unsorted-continuous-subarray)     subarray)

 338 Counting Bits  (/articles/counting- 66.3% Medium


(/problems/counting-bits)     bits)

 142 Linked List Cycle II  (/articles/linked-list- 34.5% Medium


(/problems/linked-list-cycle-ii)     cycle-ii)

all  rows per page.

  Topics

Array 212 (/tag/array/) Dynamic Programming 174 (/tag/dynamic-programming/) Math 163 (/tag/math/)

String 151 (/tag/string/) Tree 123 (/tag/tree/) Hash Table 121 (/tag/hash-table/)

Depth-first Search 114 (/tag/depth-first-search/) Binary Search 81 (/tag/binary-search/) Greedy 69 (/tag/greedy/)

Breadth-first Search 61 (/tag/breadth-first-search/) Two Pointers 60 (/tag/two-pointers/) Stack 54 (/tag/stack/)

Backtracking 52 (/tag/backtracking/) Design 43 (/tag/design/) Bit Manipulation 40 (/tag/bit-manipulation/)

Sort 38 (/tag/sort/) Graph 37 (/tag/graph/) Linked List 37 (/tag/linked-list/) Heap 34 (/tag/heap/)

Show More 
  Companies

Google 755 (/company/google/) Amazon 606 (/company/amazon/) Facebook 450 (/company/facebook/)

Microsoft 407 (/company/microsoft/) Uber 274 (/company/uber/) Apple 264 (/company/apple/)

Bloomberg 256 (/company/bloomberg/) Adobe 171 (/company/adobe/) LinkedIn 135 (/company/linkedin/)

Oracle 127 (/company/oracle/) Yahoo 106 (/company/yahoo/) Goldman Sachs 85 (/company/goldman-sachs/)

Snapchat 80 (/company/snapchat/) Twitter 79 (/company/twitter/) Walmart Labs 67 (/company/walmart-labs/)

Airbnb 64 (/company/airbnb/) VMware 60 (/company/vmware/) eBay 59 (/company/ebay/)

Salesforce 59 (/company/salesforce/) Alibaba 53 (/company/alibaba/) Lyft 52 (/company/lyft/)

Cisco 50 (/company/cisco/) Expedia 45 (/company/expedia/) ByteDance 44 (/company/bytedance/)

Yelp 44 (/company/yelp/) Baidu 38 (/company/baidu/) Paypal 37 (/company/paypal/) Pinterest 36 (/company/pinterest/)

Yandex 35 (/company/yandex/) Mathworks 34 (/company/mathworks/) Zillow 33 (/company/zillow/)

SAP 30 (/company/sap/) Visa 30 (/company/visa/) Atlassian 29 (/company/atlassian/) Tencent 29 (/company/tencent/)

Quora 27 (/company/quora/) Intuit 25 (/company/intuit/) Nutanix 25 (/company/nutanix/) Citadel 24 (/company/citadel/)

Dropbox 23 (/company/dropbox/) Qualtrics 23 (/company/qualtrics/) Zenefits 23 (/company/zenefits/)

Pocket Gems 22 (/company/pocket-gems/) Wayfair 21 (/company/wayfair/) Wish 21 (/company/wish/)

Palantir Technologies 20 (/company/palantir-technologies/) Indeed 19 (/company/indeed/) Square 19 (/company/square/)

Two Sigma 19 (/company/two-sigma/) Akuna Capital 18 (/company/akuna-capital/) GoDaddy 18 (/company/godaddy/)

Hulu 18 (/company/hulu/) JPMorgan 18 (/company/jpmorgan/) Samsung 18 (/company/samsung/)

Houzz 17 (/company/houzz/) Coursera 16 (/company/coursera/) DoorDash 16 (/company/doordash/)

IXL 16 (/company/ixl/) TripAdvisor 16 (/company/tripadvisor/)

Show More 
Copyright © 2019 LeetCode Help Center (/support/)  |  Terms (/terms/)  |  Privacy (/privacy/)     United States
(/region/)

You might also like