LeetCode题解

# Title 通过率 简易程度
1 Two Sum 17.70% Medium
2 Add Two Numbers 21.10% Medium
3 Longest Substring Without Repeating Characters 20.60% Medium
4 Median of Two Sorted Arrays 17.40% Hard
5 Longest Palindromic Substring 20.70% Medium
6 ZigZag Conversion 21.80% Easy
7 Reverse Integer 25.10% Easy
8 String to Integer (atoi) 13.00% Easy
9 Palindrome Number 28.30% Easy
10 Regular Expression Matching 20.70% Hard
11 Container With Most Water 32.00% Medium
12 Integer to Roman 33.80% Medium
13 Roman to Integer 34.00% Easy
14 Longest Common Prefix 25.50% Easy
15 3Sum 16.90% Medium
16 3Sum Closest 26.90% Medium
17 Letter Combinations of a Phone Number 25.80% Medium
18 4Sum 21.70% Medium
19 Remove Nth Node From End of List 27.10% Easy
20 Valid Parentheses 26.50% Easy
21 Merge Two Sorted Lists 32.70% Easy
22 Generate Parentheses 32.60% Medium
23 Merge k Sorted Lists 21.10% Hard
24 Swap Nodes in Pairs 32.50% Medium
25 Reverse Nodes in k-Group 25.50% Hard
26 Remove Duplicates from Sorted Array 31.30% Easy
27 Remove Element 32.10% Easy
28 Implement strStr() 22.20% Easy
29 Divide Two Integers 15.00% Medium
30 Substring with Concatenation of All Words 19.40% Hard
31 Next Permutation 25.00% Medium
32 Longest Valid Parentheses 20.90% Hard
33 Search in Rotated Sorted Array 28.80% Hard
34 Search for a Range 27.50% Medium
35 Search Insert Position 35.40% Medium
36 Valid Sudoku 27.20% Easy
37 Sudoku Solver 21.80% Hard
38 Count and Say 25.20% Easy
39 Combination Sum 27.90% Medium
40 Combination Sum II 25.20% Medium
41 First Missing Positive 22.90% Hard
42 Trapping Rain Water 30.00% Hard
43 Multiply Strings 21.00% Medium
44 Wildcard Matching 15.00% Hard
45 Jump Game II 24.20% Hard
46 Permutations 31.90% Medium
47 Permutations II 25.80% Hard
48 Rotate Image 31.90% Medium
49 Anagrams 24.30% Medium
50 Pow(x, n) 26.70% Medium
51 N-Queens 26.50% Hard
52 N-Queens II 35.80% Hard
53 Maximum Subarray 34.50% Medium
54 Spiral Matrix 20.80% Medium
55 Jump Game 27.00% Medium
56 Merge Intervals 22.40% Hard
57 Insert Interval 21.40% Hard
58 Length of Last Word 28.00% Easy
59 Spiral Matrix II 31.80% Medium
60 Permutation Sequence 22.80% Medium
61 Rotate List 21.70% Medium
62 Unique Paths 32.80% Medium
63 Unique Paths II 28.00% Medium
64 Minimum Path Sum 32.20% Medium
65 Valid Number 11.40% Hard
66 Plus One 30.40% Easy
67 Add Binary 24.70% Easy
68 Text Justification 14.60% Hard
69 Sqrt(x) 23.10% Medium
70 Climbing Stairs 34.40% Easy
71 Simplify Path 20.00% Medium
72 Edit Distance 26.20% Hard
73 Set Matrix Zeroes 31.40% Medium
74 Search a 2D Matrix 31.60% Medium
75 Sort Colors 32.60% Medium
76 Minimum Window Substring 18.90% Hard
77 Combinations 30.90% Medium
78 Subsets 28.20% Medium
79 Word Search 20.30% Medium
80 Remove Duplicates from Sorted Array II 30.50% Medium
81 Search in Rotated Sorted Array II 31.40% Medium
82 Remove Duplicates from Sorted List II 25.00% Medium
83 Remove Duplicates from Sorted List 34.50% Easy
84 Largest Rectangle in Histogram 22.60% Hard
85 Maximal Rectangle 22.00% Hard
86 Partition List 27.50% Medium
87 Scramble String 24.20% Hard
88 Merge Sorted Array 29.70% Easy
89 Gray Code 32.80% Medium
90 Subsets II 27.70% Medium
91 Decode Ways 16.40% Medium
92 Reverse Linked List II 26.10% Medium
93 Restore IP Addresses 21.00% Medium
94 Binary Tree Inorder Traversal 36.20% Medium
95 Unique Binary Search Trees II 28.00% Medium
96 Unique Binary Search Trees 36.00% Medium
97 Interleaving String 20.80% Hard
98 Validate Binary Search Tree 20.60% Medium
99 Recover Binary Search Tree 24.30% Hard
100 Same Tree 41.80% Easy
101 Symmetric Tree 31.60% Easy
102 Binary Tree Level Order Traversal 29.30% Easy
103 Binary Tree Zigzag Level Order Traversal 26.40% Medium
104 Maximum Depth of Binary Tree 45.10% Easy
105 Construct Binary Tree from Preorder and Inorder Traversal 26.40% Medium
106 Construct Binary Tree from Inorder and Postorder Traversal 26.80% Medium
107 Binary Tree Level Order Traversal II 31.10% Easy
108 Convert Sorted Array to Binary Search Tree 34.00% Medium
109 Convert Sorted List to Binary Search Tree 27.90% Medium
110 Balanced Binary Tree 32.00% Easy
111 Minimum Depth of Binary Tree 29.10% Easy
112 Path Sum 29.80% Easy
113 Path Sum II 26.60% Medium
114 Flatten Binary Tree to Linked List 28.80% Medium
115 Distinct Subsequences 26.30% Hard
116 Populating Next Right Pointers in Each Node 36.20% Medium
117 Populating Next Right Pointers in Each Node II 32.00% Hard
118 Pascal's Triangle 30.10% Easy
119 Pascal's Triangle II 29.40% Easy
120 Triangle 27.40% Medium
121 Best Time to Buy and Sell Stock 32.60% Medium
122 Best Time to Buy and Sell Stock II 38.30% Medium
123 Best Time to Buy and Sell Stock III 23.90% Hard
124 Binary Tree Maximum Path Sum 21.50% Hard
125 Valid Palindrome 22.00% Easy
126 Word Ladder II 12.90% Hard
127 Word Ladder 19.30% Medium
128 Longest Consecutive Sequence 29.40% Hard
129 Sum Root to Leaf Numbers 30.30% Medium
130 Surrounded Regions 14.60% Medium
131 Palindrome Partitioning 26.70% Medium
132 Palindrome Partitioning II 19.70% Hard
133 Clone Graph 24.00% Medium
134 Gas Station 25.70% Medium
135 Candy 20.50% Hard
136 Single Number 45.10% Medium
137 Single Number II 35.00% Medium
138 Copy List with Random Pointer 25.10% Hard
139 Word Break 23.00% Medium
140 Word Break II 17.70% Hard
141 Linked List Cycle 36.30% Medium
142 Linked List Cycle II 31.40% Medium
143 Reorder List 21.00% Medium
144 Binary Tree Preorder Traversal 36.30% Medium
145 Binary Tree Postorder Traversal 32.40% Hard
146 LRU Cache 15.00% Hard
147 Insertion Sort List 26.40% Medium
148 Sort List 22.00% Medium
149 Max Points on a Line 12.60% Hard
150 Evaluate Reverse Polish Notation 21.10% Medium
151 Reverse Words in a String 15.10% Medium
152 Maximum Product Subarray 19.40% Medium
153 Find Minimum in Rotated Sorted Array 33.30% Medium
154 Find Minimum in Rotated Sorted Array II 31.90% Hard
155 Min Stack 18.50% Easy
156 Binary Tree Upside Down $ 34.30% Medium
157 Read N Characters Given Read4 $ 29.80% Easy
158 Read N Characters Given Read4 II - Call multiple times $ 22.30% Hard
159 Longest Substring with At Most Two Distinct Characters $ 30.20% Hard
160 Intersection of Two Linked Lists 28.70% Easy
161 One Edit Distance $ 24.00% Medium
162 Find Peak Element 31.50% Medium
163 Missing Ranges $ 24.10% Medium
164 Maximum Gap 24.40% Hard
165 Compare Version Numbers 15.20% Easy
166 Fraction to Recurring Decimal 12.70% Medium
167 Two Sum II - Input array is sorted $ 43.30% Medium
168 Excel Sheet Column Title 18.10% Easy
169 Majority Element 35.00% Easy
170 Two Sum III - Data structure design $ 24.70% Easy
171 Excel Sheet Column Number 36.50% Easy
172 Factorial Trailing Zeroes 28.40% Easy
173 Binary Search Tree Iterator 29.30% Medium
174 Dungeon Game 17.70% Hard
175 Combine Two Tables * 34.40% Easy
176 Second Highest Salary * 25.00% Easy
177 Nth Highest Salary * 16.30% Medium
178 Rank Scores * 24.60% Medium
179 Largest Number 15.70% Medium
180 Consecutive Numbers * 26.60% Medium
181 Employees Earning More Than Their Managers * 41.00% Easy
182 Duplicate Emails * 38.10% Easy
183 Customers Who Never Order * 33.70% Easy
184 Department Highest Salary * 19.00% Medium
185 Department Top Three Salaries * 15.20% Hard
186 Reverse Words in a String II $ 31.10% Medium
187 Repeated DNA Sequences 19.50% Medium
188 Best Time to Buy and Sell Stock IV 17.30% Hard
189 Rotate Array 17.80% Easy
190 Reverse Bits 28.40% Easy
191 Number of 1 Bits 37.30% Easy
192 Word Frequency # 26.10% Medium
193 Valid Phone Numbers # 24.40% Easy
194 Transpose File # 21.40% Medium
195 Tenth Line # 32.20% Easy
196 Delete Duplicate Emails * 19.00% Easy
197 Rising Temperature * 25.90% Easy
198 House Robber 28.80% Easy
199 Binary Tree Right Side View 27.10% Medium
200 Number of Islands 21.90% Medium
201 Bitwise AND of Numbers Range 23.30% Medium
202 Happy Number 31.40% Easy
203 Remove Linked List Elements 25.80% Easy
204 Count Primes 19.00% Easy
205 Isomorphic Strings 24.20% Easy
206 Reverse Linked List 31.50% Easy
207 Course Schedule 21.70% Medium
208 Implement Trie (Prefix Tree) 24.80% Medium
209 Minimum Size Subarray Sum 22.90% Medium
210 Course Schedule II 19.30% Medium
211 Add and Search Word - Data structure design 20.70% Medium
212 Word Search II 15.00% Hard
213 House Robber II 26.30% Medium
214 Shortest Palindrome 16.80% Hard
215 Kth Largest Element in an Array 27.30% Medium
216 Combination Sum III 27.70% Medium
217 Contains Duplicate 35.90% Easy
218 The Skyline Problem 16.20% Hard
219 Contains Duplicate II 25.60% Easy
220 Contains Duplicate III 15.30% Medium
221 Maximal Square 20.30% Medium
222 Count Complete Tree Nodes 19.40% Medium
223 Rectangle Area 25.60% Easy
224 Basic Calculator 15.80% Medium
225 Implement Stack using Queues 29.60% Medium
226 Invert Binary Tree 35.40% Easy
227 Basic Calculator II 18.00% Medium
228 Summary Ranges 21.10% Easy
229 Majority Element II 30.50% Medium
230 Kth Smallest Element in a BST 30.50% Medium
231 Power of Two 31.30% Easy
232 Implement Queue using Stacks 37.40% Easy
233 Number of Digit One 16.10% Medium
234 Palindrome Linked List 23.80% Easy
235 Lowest Common Ancestor of a Binary Search Tree 38.90% Medium
236 Lowest Common Ancestor of a Binary Tree 28.30% Medium
237 Delete Node in a Linked List 50.90% Easy
238 Product of Array Except Self 42.40% Medium
239 Sliding Window Maximum 24.30% Hard
240 Search a 2D Matrix II 31.40% Medium
241 Different Ways to Add Parentheses 27.10% Medium
242 Valid Anagram 39.30% Easy
243 Shortest Word Distance $ 41.80% Easy
244 Shortest Word Distance II $ 33.70% Medium
245 Shortest Word Distance III $ 43.20% Medium
246 Strobogrammatic Number $ 31.60% Easy
247 Strobogrammatic Number II $ 26.70% Medium
248 Strobogrammatic Number III $ 21.80% Hard
249 Group Shifted Strings $ 25.20% Easy
250 Count Univalue Subtrees $ 32.70% Medium
251 Flatten 2D Vector $ 28.30% Medium
252 Meeting Rooms $ 35.40% Easy
253 Meeting Rooms II $ 28.80% Medium
254 Factor Combinations $ 29.00% Medium
255 Verify Preorder Sequence in Binary Search Tree $ 32.30% Medium
256 Paint House $ 38.40% Medium
257 Binary Tree Paths 21.90% Easy
258 Add Digits 46.50% Easy
259 3Sum Smaller $ 34.20% Medium
260 Single Number III 37.60% Medium
261 Graph Valid Tree $ 25.40% Medium
262 Trips and Users * 16.10% Hard
263 Ugly Number 32.6% Easy
264 Ugly Number II 21.60% Medium
265 Paint House II $ 30.00% Hard
266 Palindrome Permutation $ 45.80% Easy
267 Palindrome Permutation II $ 22.50% Medium
268 Missing Number 34.70% Medium
269 Alien Dictionary $ 16.50% Hard
270 Closest Binary Search Tree Value $ 29.40% Easy
271 Encode and Decode Strings $ 25.40% Medium
272 Closest Binary Search Tree Value II $ 26.90% Hard
273 Integer to English Words 15.50% Medium
274 H-Index 25.30% Medium
275 H-Index II 31.40% Medium
276 Paint Fence $ 25.00% Easy
277 Find the Celebrity $ 31.70% Medium
278 First Bad Version 19.80% Easy
279 Perfect Squares 28.80% Medium
280 Wiggle Sort $ 43.30% Medium
281 Zigzag Iterator $ 37.20% Medium
282 Expression Add Operators 18.90% Hard
283 Move Zeroes 41.40% Easy
284 Peeking Iterator 31.00% Medium
285 Inorder Successor in BST $ 32.50% Medium
286 Walls and Gates $ 29.90% Medium
287 Find the Duplicate Number 32.80% Hard
288 Unique Word Abbreviation $ 16.80% Easy
289 Game of Life 32.60% Medium
290 Word Pattern 26.50% Easy
291 Word Pattern II $ 31.50% Hard
292 Nim Game 49.50% Easy
293 Flip Game $ 47.60% Easy
294 Flip Game II $ 38.10% Medium
295 Find Median from Data Stream 18.60% Hard
296 Best Meeting Point $ 41.40% Hard
297 Serialize and Deserialize Binary Tree 23.80% Medium
298 Binary Tree Longest Consecutive Sequence $ 32.20% Medium
299 Bulls and Cows 23.80% Easy
300 Longest Increasing Subsequence 31.50% Medium
301 Remove Invalid Parentheses 27.00% Hard
302 Smallest Rectangle Enclosing Black Pixels $ 36.70% Hard
303 Range Sum Query - Immutable 25.70% Easy
304 Range Sum Query 2D - Immutable 21.50% Medium
305 Number of Islands II $ 26.70% Hard
306 Additive Number 23.30% Medium
307 Range Sum Query - Mutable 14.50% Medium
308 Range Sum Query 2D - Mutable $ 20.30% Hard
309 Best Time to Buy and Sell Stock with Cooldown 32.60% Medium
310 Minimum Height Trees 20.20% Medium
311 Sparse Matrix Multiplication $ 40.00% Medium
312 Burst Balloons 24.50% Medium
313 Super Ugly Number 31.20% Medium
314 Binary Tree Vertical Order Traversal $ 30.10% Medium
315 Count of Smaller Numbers After Self 28.20% Hard
316 Remove Duplicate Letters 23.00% Medium
317 Shortest Distance from All Buildings $ 29.10% Hard
318 Maximum Product of Word Lengths 38.70% Medium
319 Bulb Switcher 39.20% Medium
320 Generalized Abbreviation $ 40.40% Medium
321 Create Maximum Number 19.10% Hard
322 Coin Change 24.90% Medium
323 Number of Connected Components in an Undirected Graph $ 43.30% Medium
324 Wiggle Sort II 20.10% Medium
325 Maximum Size Subarray Sum Equals k $ 39.60% Easy
326 Power of Three 35.30% Easy
327 Count of Range Sum 24.30% Hard
328 Odd Even Linked List 37.80% Easy
329 Longest Increasing Path in a Matrix 29.50% Medium
330 Patching Array 28.80% Medium
331 Verify Preorder Serialization of a Binary Tree 31.50% Medium
332 Reconstruct Itinerary 23.40% Medium
333 Largest BST Subtree $ 26.50% Medium
334 Increasing Triplet Subsequence 33.20% Medium
335 Self Crossing 18.00% Medium
336 Palindrome Pairs 18.70% Hard
337 House Robber III 37.00% Medium
338 Counting Bits 55.40% Medium
339 Nested List Weight Sum $ 54.60% Easy
340 Longest Substring with At Most K Distinct Characters $ 36.30% Hard
341 Flatten Nested List Iterator $ 18.70% Medium
342 Power of Four 34.10% Easy
343 Integer Break 43.60% Medium
344 Reverse String 58.90% Easy
345 Reverse Vowels of a String 35.30% Easy
346 Moving Average from Data Stream $ 69.20% Easy
347 Top K Frequent Elements 44.50% Medium
348 Design Tic-Tac-Toe $ 45.60% Medium
349 Intersection of Two Arrays 47.80% Easy
350 Intersection of Two Arrays II 41.50% Easy
351 Android Unlock Patterns $ 32.00% Medium
352 Data Stream as Disjoint Intervals 34.40% Hard
353 Design Snake Game $ 19.80% Medium
354 Russian Doll Envelopes 27.10% Hard
355 Design Twitter 22.20% Medium
356 Line Reflection $ 28.70% Medium
357 Count Numbers with Unique Digits 42.50% Medium
358 Rearrange String k Distance Apart $ 26.90% Hard
359 Logger Rate Limiter $ 56.00% Easy
360 Sort Transformed Array $ 40.80% Medium
361 Bomb Enemy $ 32.60% Medium
362 Design Hit Counter $ 48.30% Medium
363 Max Sum of Rectangle No Larger Than K 27.00% Hard
364 Nested List Weight Sum II $ 47.20% Medium
365 Water and Jug Problem 20.10% Medium
366 Find Leaves of Binary Tree $ 53.60% Medium
367 Valid Perfect Square 36.60% Medium
368 Largest Divisible Subset 32.00% Medium
369 Plus One Linked List $ 50.10% Medium
370 Range Addition $ 49.90% Medium
371 Sum of Two Integers 54.00% Easy
372 Super Pow 30.10% Medium
373 Find K Pairs with Smallest Sums 25.50% Medium
374 Guess Number Higher or Lower 31.70% Easy
375 Guess Number Higher or Lower II 28.30% Medium
376 Wiggle Subsequence 35.80% Medium
377 Combination Sum IV 37.50% Medium
378 Kth Smallest Element in a Sorted Matrix 40.20% Medium
379 Design Phone Directory $ 25.80% Medium
380 Insert Delete GetRandom O(1) 33.80% Medium
381 Insert Delete GetRandom O(1) - Duplicates allowed 30.90% Hard
382 Linked List Random Node 48.60% Medium
383 Ransom Note 44.60% Easy
384 Shuffle an Array 45.50% Medium
385 Mini Parser 26.90% Medium
386 Lexicographical Numbers 31.00% Medium
387 First Unique Character in a String 43.10% Easy
388 Longest Absolute File Path 28.30% Medium
389 Find the Difference 49.90% Easy
390 Elimination Game 12.50% Medium
391 Perfect Rectangle 13.30% Hard
392 Is Subsequence 44.10% Medium
393 UTF-8 Validation 33.00% Medium
394 Decode String 38.60% Medium
395 Longest Substring with At Least K Repeating Characters 32.50% Medium
396 Rotate Function 28.40% Easy
397 Integer Replacement 25.90% Easy
398 Random Pick Index 30.40% Medium
399 Evaluate Division 34.60% Medium
400 Nth Digit 30.70% Easy
401 Binary Watch 43.00% Easy
402 Remove K Digits 25.90% Medium
403 Frog Jump 31.70% Hard
404 Sum of Left Leaves 46.20% Easy
405 Convert a Number to Hexadecimal 41.80% Easy
406 Queue Reconstruction by Height 54.10% Medium
407 Trapping Rain Water II 33.10% Hard
408 Valid Word Abbreviation $ 26.20% Easy
409 Longest Palindrome 44.90% Easy
410 Split Array Largest Sum 25.00% Hard
411 Minimum Unique Word Abbreviation $ 25.60% Hard
412 Fizz Buzz 57.50% Easy
413 Arithmetic Slices 53.50% Medium
414 Third Maximum Number 26.50% Easy
415 Add Strings 41.50% Easy
416 Partition Equal Subset Sum 36.80% Medium
417 Pacific Atlantic Water Flow 31.10% Medium
418 Sentence Screen Fitting $ 25.10% Medium
419 Battleships in a Board 59.30% Medium
420 Strong Password Checker 22.10% Hard
421 Maximum XOR of Two Numbers in an Array 36.40% Medium
422 Valid Word Square $ 36.40% Easy
423 Reconstruct Original Digits from English 40.80% Medium
424 Longest Repeating Character Replacement 38.10% Medium
425 Word Squares 40.10% Hard
432 All O`one Data Structure 28.30% Hard
433 Minimum Genetic Mutation 33.50% Medium
434 Number of Segments in a String 38.40% Easy
435 Non-overlapping Intervals 39.80% Medium
436 Find Right Interval 42.30% Medium
437 Path Sum III 38.60% Easy
438 Find All Anagrams in a String 33.50% Easy
439 Ternary Expression Parser $ 49.40% Medium
440 K-th Smallest in Lexicographical Order 21.50% Hard
441 Arranging Coins 36.20% Easy
442 Find All Duplicates in an Array 46.40% Medium
443 String Compression 35.80% Easy
444 Sequence Reconstruction $ 20.50% Medium
445 Add Two Numbers II 45.40% Medium
446 Arithmetic Slices II - Subsequence 22.30% Hard
447 Number of Boomerangs 42.20% Easy
448 Find All Numbers Disappeared in an Array 58.30% Easy
449 Serialize and Deserialize BST 41.20% Medium
450 Delete Node in a BST 34.50% Medium
451 Sort Characters By Frequency 50.90% Medium
452 Minimum Number of Arrows to Burst Balloons 42.10% Medium
453 Minimum Moves to Equal Array Elements 46.30% Easy
454 4Sum II 42.80% Medium
455 Assign Cookies 48.10% Easy
456 132 Pattern 28.00% Medium
457 Circular Array Loop 20.60% Medium
458 Poor Pigs 40.70% Easy
459 Repeated Substring Pattern 39.70% Easy
460 LFU Cache 18.30% Hard
461 Hamming Distance 73.20% Easy
462 Minimum Moves to Equal Array Elements II 50.90% Medium
463 Island Perimeter 56.70% Easy
464 Can I Win 22.20% Medium
465 Optimal Account Balancing $ 29.20% Hard
466 Count The Repetitions 24.20% Hard
467 Unique Substrings in Wraparound String 29.90% Medium
468 Validate IP Address 22.10% Medium
469 Convex Polygon $ 27.20% Medium
471 Encode String with Shortest Length $ 43.50% Hard
472 Concatenated Words 29.20% Hard
473 Matchsticks to Square 31.80% Medium
474 Ones and Zeroes 34.90% Medium
475 Heaters 30.20% Easy
476 Number Complement 61.20% Easy
477 Total Hamming Distance 44.10% Medium
479 Largest Palindrome Product 23.90% Easy
480 Sliding Window Median 31.00% Hard
481 Magical String 46.20% Medium
482 License Key Formatting 41.20% Medium
483 Smallest Good Base 30.60% Hard
484 Find Permutation $ 50.50% Medium
485 Max Consecutive Ones 55.30% Easy
486 Predict the Winner 43.60% Medium
487 Max Consecutive Ones II $ 42.70% Medium
488 Zuma Game 38.00% Hard
490 The Maze 42.80% Medium
491 Increasing Subsequences 39.30% Medium
492 Construct the Rectangle 49.70% Easy
493 Reverse Pairs 17.10% Hard
494 Target Sum 44.40% Medium
495 Teemo Attacking 51.90% Medium
496 Next Greater Element I 58.80% Easy
498 Diagonal Traverse 46.20% Medium
499 The Maze III 32.00% Hard
500 Keyboard Row 60.20% Easy
501 Find Mode in Binary Search Tree 39.40% Easy
502 IPO 32.40% Hard
503 Next Greater Element II 46.20% Medium
504 Base 7 46.40% Easy
505 The Maze II 34.80% Medium
506 Relative Ranks 48.50% Easy
507 Perfect Number 32.70% Easy
508 Most Frequent Subtree Sum 52.00% Medium
513 Find Bottom Left Tree Value 55.60% Medium
514 Freedom Trail 27.20% Hard
515 Find Largest Value in Each Tree Row 52.70% Medium
516 Longest Palindromic Subsequence 42.00% Medium
517 Super Washing Machines 34.60% Hard
518 Coin Change 2 33.20% Medium
520 Detect Capital 54.20% Easy
521 Longest Uncommon Subsequence I 50.70% Easy
522 Longest Uncommon Subsequence II 28.10% Medium
523 Continuous Subarray Sum 21.30 Medium
524 Longest Word in Dictionary through Deleting 40.20% Medium
525 Contiguous Array 34.40% Medium
526 Beautiful Arrangement 53.50% Medium
527 Word Abbreviation $ 33.90% Hard
529 Minesweeper 52.00% Medium
530 Minimum Absolute Difference in BST 48.00% Easy
531 Lonely Pixel I $ 50.20% Medium
532 K-diff Pairs in an Array 27.20% Easy
533 Lonely Pixel II $ 38.90% Medium
534 Design TinyURL N/A Medium
535 Encode and Decode TinyURL 76.10% Medium
536 Construct Binary Tree from String $ 36.30% Medium
537 Complex Number Multiplication 65.90% Medium
538 Convert BST to Greater Tree 52.70% Medium
539 Minimum Time Difference 44.70% Medium
540 Single Element in a Sorted Array 55.90% Medium
541 Reverse String II 44.40% Easy
542 01 Matrix 32.50% Medium
543 Diameter of Binary Tree 42.70% Easy
544 Output Contest Matches $ 73.20% Medium
545 Boundary of Binary Tree $ 29.10% Medium
546 Remove Boxes 29.60% Hard
547 Friend Circles 49.00% Medium
548 Split Array with Equal Sum $ 30.80% Medium
549 Binary Tree Longest Consecutive Sequence II $ 38.10% Medium
551 Student Attendance Record I 43.90% Easy
552 Student Attendance Record II 28.50% Hard
553 Optimal Division 55.20% Medium
554 Brick Wall 42.70% Medium
555 Split Concatenated Strings $ 30.00% Medium
556 Next Greater Element III 27.70% Medium
557 Reverse Words in a String III 61.20% Easy
560 Subarray Sum Equals K 41.80% Medium
561 Array Partition I 69.80% Easy
562 Longest Line of Consecutive One in Matrix $ 38.80% Medium
563 Binary Tree Tilt 47.00% Easy
564 Find the Closest Palindrome 16.60% Hard
565 Array Nesting 50.00% Medium
566 Reshape the Matrix 59.80% Easy
567 Permutation in String 36.30% Medium
568 Maximum Vacation Days $ 39.90% Hard
572 Subtree of Another Tree 41.00% Easy
573 Squirrel Simulation 51.00% Medium
575 Distribute Candies 59.50% Easy
576 Out of Boundary Paths 33.10% Medium
581 Shortest Unsorted Continuous Subarray 30.10% Easy
582 Kill Process $ 47.70% Medium
583 Delete Operation for Two Strings 44.00% Medium
587 Erect the Fence 29.90% Hard
588 Design In-Memory File System $ 32.40% Hard
591 Tag Validator 26.40% Hard
592 Fraction Addition and Subtraction 47.00% Medium
593 Valid Square 39.20% Medium
594 Longest Harmonious Subsequence 40.00% Easy
598 Range Addition II 48.30% Easy
599 Minimum Index Sum of Two Lists 48.00% Easy
600 Non-negative Integers without Consecutive Ones 27.40% Hard
604 Design Compressed String Iterator $ 31.60% Easy
605 Can Place Flowers 30.00% Easy
606 Construct String from Binary Tree 51.80% Easy
609 Find Duplicate File in System 52.50% Medium
611 Valid Triangle Number 38.90% Medium
616 Add Bold Tag in String $ 37.30% Medium
617 Merge Two Binary Trees 69.60% Easy
621 Task Scheduler 41.40% Medium
623 Add One Row to Tree 48.70% Medium
624 Maximum Distance in Arrays $ 32.70% Easy
625 Minimum Factorization 29.50% Medium
628 Maximum Product of Three Numbers 45.40% Easy
629 K Inverse Pairs Array 23.90% Hard
630 Course Schedule III 20.50% Medium
631 Design Excel Sum Formula $ 25.60% Hard
632 Smallest Range 42.80% Hard
633 Sum of Square Numbers 31.60% Easy
634 Find the Derangement of An Array $ 32.70% Medium
635 Design Log Storage System $ 47.70% Medium
636 Exclusive Time of Functions 40.30% Medium
637 Average of Levels in Binary Tree 55.60% Easy
638 Shopping Offers 41.50% Medium
639 Decode Ways II 22.80% Hard
640 Solve the Equation 39.00% Medium
642 Design Search Autocomplete System $ 29.40% Hard
643 Maximum Average Subarray I 38.40% Easy
644 Maximum Average Subarray II $ 20.30% Hard
645 Set Mismatch 40.40% Easy
646 Maximum Length of Pair Chain 47.40% Medium
647 Palindromic Substrings 55.70% Medium
648 Replace Words 48.40% Medium
649 Dota2 Senate 35.60% Medium
650 2 Keys Keyboard 42.70% Medium
651 4 Keys Keyboard $ 46.70% Medium
652 Find Duplicate Subtrees 33.20% Medium
653 Two Sum IV - Input is a BST 50.60% Easy
654 Maximum Binary Tree 70.80% Medium
655 Print Binary Tree 50.80% Medium
656 Coin Path $ 24.60% Hard
657 Judge Route Circle 69.30% Easy
658 Find K Closest Elements 36.30% Medium
659 Split Array into Consecutive Subsequences 39.40% Medium
660 Remove 9 $ 46.10% Hard
661 Image Smoother 46.60% Easy
662 Maximum Width of Binary Tree 37.00% Medium
663 Equal Tree Partition $ 36.70% Medium
664 Strange Printer 31.10% Hard
665 Non-decreasing Array 21.20% Easy
666 Path Sum IV $ 48.90% Medium
667 Beautiful Arrangement II 51.50% Medium
668 Kth Smallest Number in Multiplication Table 36.30% Hard
669 Trim a Binary Search Tree 58.70% Easy
670 Maximum Swap 38.40% Medium
671 Second Minimum Node In a Binary Tree 42.30% Easy
672 Bulb Switcher II 47.60% Medium
673 Number of Longest Increasing Subsequence 30.80% Medium
674 Longest Continuous Increasing Subsequence 43.20% Easy
675 Cut Off Trees for Golf Event 27.20% Hard
676 Implement Magic Dictionary 50.70% Medium
677 Map Sum Pairs 53.80% Medium
678 Valid Parenthesis String 28.30% Medium
679 24 Game 38.30% Hard
680 Valid Palindrome II 31.10% Easy
681 Next Closest Time $ 43.00% Medium
682 Baseball Game 58.60% Easy
683 K Empty Slots 37.00% Hard
684 Redundant Connection 37.40% Medium
685 Redundant Connection II 28.40% Hard
686 Repeated String Match 31.70% Easy
687 Longest Univalue Path 32.90% Easy
688 Knight Probability in Chessboard 38.90% Medium
689 Maximum Sum of 3 Non-Overlapping Subarrays 41.70% Hard
690 Employee Importance 53.60% Easy
691 Stickers to Spell Word 32.30% Hard
692 Top K Frequent Words 41.70% Medium
693 Binary Number with Alternating Bits 54.20% Easy
694 Number of Distinct Islands $ 43.90% Medium
695 Max Area of Island 53.30% Easy
696 Count Binary Substrings 51.90% Easy
697 Degree of an Array 47.90% Easy
698 Partition to K Equal Sum Subsets 35.60% Medium
699 Falling Squares 36.80% Hard
711 Number of Distinct Islands II $ 39.40% Hard
712 Minimum ASCII Delete Sum for Two Strings 50.90% Medium
713 Subarray Product Less Than K 32.90% Medium
714 Best Time to Buy and Sell Stock with Transaction Fee 41.60% Medium
715 Range Module 31.00% Hard
716 Max Stack $ 35.50% Hard
717 1-bit and 2-bit Characters 50.90% Easy
718 Maximum Length of Repeated Subarray 39.90% Medium
719 Find K-th Smallest Pair Distance 26.10% Hard
720 Longest Word in Dictionary 40.60% Easy
721 Accounts Merge 29.60% Medium
722 Remove Comments 26.30% Medium
723 Candy Crush $ 56.10% Medium
724 Find Pivot Index 41.00% Easy
725 Split Linked List in Parts 50.00% Medium
726 Number of Atoms 45.00% Hard
727 Minimum Window Subsequence 30.10% Hard
728 Self Dividing Numbers 68.50% Easy
729 My Calendar I 40.10% Medium
730 Count Different Palindromic Subsequences 32.40% Hard
731 My Calendar II 35.00% Medium
732 My Calendar III 51.30% Hard
733 Flood Fill 49.30% Easy
734 Sentence Similarity $ 38.60% Easy
735 Asteroid Collision 37.60% Medium
736 Parse Lisp Expression 42.00% Hard
737 Sentence Similarity II $ 41.20% Medium
738 Monotone Increasing Digits 41.80% Medium
739 Daily Temperatures 53.50% Medium
740 Delete and Earn 42.60% Medium
741 Cherry Pickup 22.50% Hard
742 Closest Leaf in a Binary Tree $ 33.20% Medium
743 Network Delay Time 34.30% Medium
744 Find Smallest Letter Greater Than Target 45.30% Easy
745 Prefix and Suffix Search 24.50% Hard
746 Min Cost Climbing Stairs 43.60% Easy
747 Largest Number At Least Twice of Others 42.60% Easy
748 Shortest Completing Word 53.50% Medium
749 Contain Virus 39.60% Hard
750 Number Of Corner Rectangles $ 51.00% Medium
751 IP to CIDR $ 54.80% Easy
752 Open the Lock 38.20% Medium
753 Cracking the Safe 39.70% Hard
754 Reach a Number 26.10% Medium
755 Pour Water $ 34.00% Medium
756 Pyramid Transition Matrix 45.50% Medium
757 Set Intersection Size At Least Two 34.60% Hard
758 Bold Words in String $ 37.90% Easy
759 Employee Free Time $ 51.90% Hard
760 Find Anagram Mappings $ 75.60% Easy
761 Special Binary String 41.00% Hard
762 Prime Number of Set Bits in Binary Representation 55.00% Easy
763 Partition Labels 64.10% Medium
764 Largest Plus Sign 39.20% Medium
765 Couples Holding Hands 48.50% Hard
766 Toeplitz Matrix 57.90% Easy
767 Reorganize String 36.50% Medium
768 Max Chunks To Make Sorted II 43.20% Hard
769 Max Chunks To Make Sorted 48.00% Medium
770 Basic Calculator IV 42.10% Hard
771 Jewels and Stones 81.90% Easy
772 Basic Calculator III $ 40.10% Hard
773 Sliding Puzzle 46.50% Hard
774 Minimize Max Distance to Gas Station $ 32.80% Hard
775 Global and Local Inversions 33.60% Medium
776 Split BST $ 49.90% Medium
777 Swap Adjacent in LR String 28.90% Medium
778 Swim in Rising Water 44.60% Hard
779 K-th Symbol in Grammar 37.30% Medium
780 Reaching Points 23.90% Hard
781 Rabbits in Forest 49.80% Medium
782 Transform to Chessboard 37.50% Hard
783 [Minimum Distance

你可能感兴趣的:(LeetCode题解)