LeetCode Top Interview Questions

LeetCode Top Interview Questions

https://leetcode.com/problemset/top-interview-questions/

# No. Title Acceptance Difficulty
1 1 Two Sum 38.80% Easy
2 2 Add Two Numbers 29.10% Medium
3 3 Longest Substring Without Repeating Characters 25.00% Medium
4 4 Median of Two Sorted Arrays 23.80% Hard
5 5 Longest Palindromic Substring 25.60% Medium
6 7 Reverse Integer 24.40% Easy
7 8 String to Integer (atoi) 14.10% Medium
8 10 Regular Expression Matching 24.40% Hard
9 11 Container With Most Water 38.50% Medium
10 13 Roman to Integer 49.40% Easy
11 14 Longest Common Prefix 31.90% Easy
12 15 3Sum 22.00% Medium
13 17 Letter Combinations of a Phone Number 38.00% Medium
14 19 Remove Nth Node From End of List 33.70% Medium
15 20 Valid Parentheses 34.60% Easy
16 21 Merge Two Sorted Lists 43.00% Easy
17 22 Generate Parentheses 50.00% Medium
18 23 Merge k Sorted Lists 30.00% Hard
19 26 Remove Duplicates from Sorted Array 37.70% Easy
20 28 Implement strStr() 29.90% Easy
21 29 Divide Two Integers 15.70% Medium
22 33 Search in Rotated Sorted Array 32.10% Medium
23 34 Find First and Last Position of Element in Sorted Array 32.00% Medium
24 36 Valid Sudoku 39.30% Medium
25 38 Count and Say 37.80% Easy
26 41 First Missing Positive 26.70% Hard
27 42 Trapping Rain Water 39.00% Hard
28 44 Wildcard Matching 21.50% Hard
29 46 Permutations 49.80% Medium
30 48 Rotate Image 43.90% Medium
31 49 Group Anagrams 41.10% Medium
32 50 Pow(x, n) 26.50% Medium
33 53 Maximum Subarray 41.20% Easy
34 54 Spiral Matrix 28.10% Medium
35 55 Jump Game 30.20% Medium
36 56 Merge Intervals 33.00% Medium
37 62 Unique Paths 44.30% Medium
38 66 Plus One 40.00% Easy
39 69 Sqrt(x) 29.50% Easy
40 70 Climbing Stairs 42.00% Easy
41 73 Set Matrix Zeroes 37.50% Medium
42 75 Sort Colors 39.90% Medium
43 76 Minimum Window Substring 28.00% Hard
44 78 Subsets 47.50% Medium
45 79 Word Search 28.90% Medium
46 84 Largest Rectangle in Histogram 28.60% Hard
47 88 Merge Sorted Array 33.20% Easy
48 91 Decode Ways 20.90% Medium
49 94 Binary Tree Inorder Traversal 52.00% Medium
50 98 Validate Binary Search Tree 24.40% Medium
51 101 Symmetric Tree 41.40% Easy
52 102 Binary Tree Level Order Traversal 44.50% Medium
53 103 Binary Tree Zigzag Level Order Traversal 38.30% Medium
54 104 Maximum Depth of Binary Tree 56.70% Easy
55 105 Construct Binary Tree from Preorder and Inorder Traversal 36.40% Medium
56 108 Convert Sorted Array to Binary Search Tree 46.40% Easy
57 116 Populating Next Right Pointers in Each Node 36.60% Medium
58 118 Pascal's Triangle 41.90% Easy
59 121 Best Time to Buy and Sell Stock 44.20% Easy
60 122 Best Time to Buy and Sell Stock II 49.00% Easy
61 124 Binary Tree Maximum Path Sum 27.90% Hard
62 125 Valid Palindrome 28.40% Easy
63 127 Word Ladder 21.00% Medium
64 128 Longest Consecutive Sequence 39.30% Hard
65 130 Surrounded Regions 20.70% Medium
66 131 Palindrome Partitioning 37.30% Medium
67 134 Gas Station 31.20% Medium
68 136 Single Number 56.90% Easy
69 138 Copy List with Random Pointer 25.70% Medium
70 139 Word Break 32.50% Medium
71 140 Word Break II 25.30% Hard
72 141 Linked List Cycle 34.70% Easy
73 146 LRU Cache 21.20% Hard
74 148 Sort List 31.60% Medium
75 149 Max Points on a Line 15.20% Hard
76 150 Evaluate Reverse Polish Notation 29.70% Medium
77 152 Maximum Product Subarray 27.40% Medium
78 155 Min Stack 33.00% Easy
79 160 Intersection of Two Linked Lists 30.80% Easy
80 162 Find Peak Element 39.70% Medium
81 163 Missing Ranges 22.90% Medium
82 166 Fraction to Recurring Decimal 18.50% Medium
83 169 Majority Element 49.40% Easy
84 171 Excel Sheet Column Number 49.70% Easy
85 172 Factorial Trailing Zeroes 37.00% Easy
86 179 Largest Number 24.20% Medium
87 189 Rotate Array 26.80% Easy
88 190 Reverse Bits 29.30% Easy
89 191 Number of 1 Bits 40.80% Easy
90 198 House Robber 40.40% Easy
91 200 Number of Islands 37.90% Medium
92 202 Happy Number 42.70% Easy
93 204 Count Primes 27.10% Easy
94 206 Reverse Linked List 49.20% Easy
95 207 Course Schedule 34.80% Medium
96 208 Implement Trie (Prefix Tree) 33.30% Medium
97 210 Course Schedule II 31.60% Medium
98 212 Word Search II 25.80% Hard
99 215 Kth Largest Element in an Array 42.60% Medium
100 217 Contains Duplicate 48.70% Easy
101 218 The Skyline Problem 29.80% Hard
102 227 Basic Calculator II 31.00% Medium
103 230 Kth Smallest Element in a BST 47.20% Medium
104 234 Palindrome Linked List 34.20% Easy
105 236 Lowest Common Ancestor of a Binary Tree 31.60% Medium
106 237 Delete Node in a Linked List 49.00% Easy
107 238 Product of Array Except Self 51.50% Medium
108 239 Sliding Window Maximum 35.20% Hard
109 240 Search a 2D Matrix II 39.40% Medium
110 242 Valid Anagram 48.80% Easy
111 251 Flatten 2D Vector 42.00% Medium
112 253 Meeting Rooms II 40.10% Medium
113 268 Missing Number 46.00% Easy
114 269 Alien Dictionary 27.50% Hard
115 277 Find the Celebrity 35.30% Medium
116 279 Perfect Squares 38.70% Medium
117 283 Move Zeroes 52.30% Easy
118 285 Inorder Successor in BST 34.10% Medium
119 287 Find the Duplicate Number 45.90% Medium
120 289 Game of Life 39.30% Medium
121 295 Find Median from Data Stream 31.40% Hard
122 297 Serialize and Deserialize Binary Tree 36.50% Hard
123 300 Longest Increasing Subsequence 39.20% Medium
124 308 Range Sum Query 2D - Mutable 27.90% Hard
125 315 Count of Smaller Numbers After Self 35.50% Hard
126 322 Coin Change 27.20% Medium
127 324 Wiggle Sort II 26.60% Medium
128 326 Power of Three 41.00% Easy
129 328 Odd Even Linked List 46.30% Medium
130 329 Longest Increasing Path in a Matrix 37.70% Hard
131 334 Increasing Triplet Subsequence 39.50% Medium
132 340 Longest Substring with At Most K Distinct Characters 38.50% Hard
133 341 Flatten Nested List Iterator 44.30% Medium
134 344 Reverse String 61.30% Easy
135 347 Top K Frequent Elements 50.80% Medium
136 348 Design Tic-Tac-Toe 46.80% Medium
137 350 Intersection of Two Arrays II 44.70% Easy
138 371 Sum of Two Integers 50.80% Easy
139 378 Kth Smallest Element in a Sorted Matrix 46.20% Medium
140 380 Insert Delete GetRandom O(1) 40.50% Medium
141 384 Shuffle an Array 47.90% Medium
142 387 First Unique Character in a String 47.60% Easy
143 395 Longest Substring with At Least K Repeating Characters 36.20% Medium
144 412 Fizz Buzz 58.10% Easy
145 454 4Sum II 48.20% Mediu

 

 

 

 

posted @ 2018-09-12 09:25  轻风舞动  阅读(1171)  评论(0编辑  收藏  举报