LeetCode刷题资料

刷题顺序

LeetCode400道

1Two Sum49.3%简单HashMap
2Add Two Numbers38.1%适中数组相关
3Longest Substring Without Repeating Characters35.4%适中HashMap
4Median of Two Sorted Arrays38.6%困难难且重要
5Longest Palindromic Substring31.6%适中Palindrome
6ZigZag Conversion48.6%适中不重要
7Reverse Integer34.6%简单基础
8String to Integer (atoi)20.9%适中基础
9Palindrome Number58.5%简单Palindrome
10Regular Expression Matching30.2%困难超难
11Container With Most Water64%适中双向双指针
12Integer to Roman64.2%适中实现题
13Roman to Integer62%简单实现题
14Longest Common Prefix38.6%简单Java基础
153Sum29.1%适中求和
163Sum Closest45.8%适中双向双指针
17Letter Combinations of a Phone Number54.3%适中实现题
184Sum38.3%适中求和
19Remove Nth Node From End of List39.3%适中删除
20Valid Parentheses42.8%简单平衡符号
21Merge Two Sorted Lists64%简单数组相关
22Generate Parentheses76%适中Parentheses
23Merge k Sorted Lists52.8%困难数组相关&PriorityQueue
24Swap Nodes in Pairs66.5%适中基础操作
25Reverse Nodes in k-Group62.6%困难反转
26Remove Duplicates from Sorted Array51.4%简单单向双指针
27Remove Element58.6%简单单向双指针
28Implement strStr()39.7%简单Java基础
29Divide Two Integers20.1%适中加减乘除
30Substring with Concatenation of All Words31.6%困难Substring&Sliding Window
31Next Permutation34.4%适中排列&规律
32Longest Valid Parentheses33.6%困难Parentheses
33Search in Rotated Sorted Array38.5%适中旋转
34Find First and Last Position of Element in Sorted Array40.2%适中基础
35Search Insert Position46.6%简单基础
36Valid Sudoku60.5%适中特殊
37Sudoku Solver62.4%困难特殊
38Count and Say56.2%适中实现题
39Combination Sum69.5%适中组合
40Combination Sum II62.5%适中组合
41First Missing Positive40.2%困难交换
42Trapping Rain Water52.3%困难双向双指针
43Multiply Strings44.5%适中加减乘除
44Wildcard Matching31.2%困难超难
45Jump Game II37.4%适中基础
46Permutations76.7%适中排列
47Permutations II59.6%适中排列
48Rotate Image69.2%适中二维数组
49Group Anagrams63.1%适中Group&Anagram
50Pow(x, n)36.4%适中开方
51N-Queens70.7%困难极难
52N-Queens II79.2%困难极难
53Maximum Subarray52.1%简单一维
54Spiral Matrix41%适中二维数组
55Jump Game40.9%适中基础
56Merge Intervals42.9%适中区间问题
57Insert Interval37.5%适中区间问题
58Length of Last Word33.6%简单Java基础
59Spiral Matrix II78%适中二维数组
60Permutation Sequence49.1%困难排列&规律
61Rotate List40.6%适中基础操作
62Unique Paths61.8%适中网格问题
63Unique Paths II36.6%适中网格问题
64Minimum Path Sum67.5%适中网格问题
65Valid Number20.6%困难
66Plus One45.1%简单加减乘除
67Add Binary54.4%简单加减乘除
68Text Justification44.3%困难极难
69Sqrt(x)38.8%简单开方
70Climbing Stairs50.3%简单网格问题
71Simplify Path40.4%适中压栈匹配
72Edit Distance59.7%困难匹配问题
73Set Matrix Zeroes55.8%适中二维数组
74Search a 2D Matrix38.7%适中二维数组
75Sort Colors55.3%适中荷兰国旗
76Minimum Window Substring38.8%困难Substring&Sliding Window
77Combinations74.5%适中组合
78Subsets77.8%适中子集&位运算
79Word Search42.3%适中Flood Fill
80Remove Duplicates from Sorted Array II56.2%适中单向双指针
81Search in Rotated Sorted Array II35.8%适中旋转
82Remove Duplicates from Sorted List II48.9%适中删除
83Remove Duplicates from Sorted List51.3%简单删除
84Largest Rectangle in Histogram41.4%困难迭代极值
85Maximal Rectangle47.6%困难迭代极值
86Partition List59.3%适中基础操作
87Scramble String47.2%困难计数排序
88Merge Sorted Array48.4%简单合并排序
89Gray Code68.7%适中不重要
90Subsets II60.7%适中子集
91Decode Ways24.3%适中匹配问题
92Reverse Linked List II51.1%适中反转
93Restore IP Addresses49.2%适中不重要
94Binary Tree Inorder Traversal72.5%简单基础
95Unique Binary Search Trees II66.6%适中不重要
96Unique Binary Search Trees69.1%适中结合
97Interleaving String45.2%适中匹配问题
98Validate Binary Search Tree32.2%适中双Pre
99Recover Binary Search Tree62.1%困难BST&Inorder
100Same Tree60.1%简单双Pre
101Symmetric Tree52.8%简单双Pre
102Binary Tree Level Order Traversal63.2%适中基础
103Binary Tree Zigzag Level Order Traversal54.8%适中BFS
104Maximum Depth of Binary Tree74.8%简单Postorder
105Construct Binary Tree from Preorder and Inorder Traversal67.8%适中不重要
106Construct Binary Tree from Inorder and Postorder Traversal69.3%适中不重要
107Binary Tree Level Order Traversal II66.3%适中BFS
108Convert Sorted Array to Binary Search Tree73.9%简单BST
109Convert Sorted List to Binary Search Tree76.1%适中BST
110Balanced Binary Tree54.5%简单Postorder
111Minimum Depth of Binary Tree43.2%简单双Pre
112Path Sum51%简单双Pre
113Path Sum II60.8%适中Preorder
114Flatten Binary Tree to Linked List70.9%适中不重要
115Distinct Subsequences48.7%困难匹配问题
116Populating Next Right Pointers in Each Node62.2%适中难且重要
117Populating Next Right Pointers in Each Node II51.2%适中难且重要
118Pascal’s Triangle67.1%简单实现题
119Pascal’s Triangle II61.7%简单实现题
120Triangle66.7%适中一维
121Best Time to Buy and Sell Stock54.8%简单实现题
122Best Time to Buy and Sell Stock II62.5%简单实现题
123Best Time to Buy and Sell Stock III44.6%困难实现题
124Binary Tree Maximum Path Sum43%困难Postorder
125Valid Palindrome46.2%简单Palindrome
126Word Ladder II38.5%困难拓扑排序
127Word Ladder43.2%困难BFS
128Longest Consecutive Sequence51.8%适中实现题
129Sum Root to Leaf Numbers64.6%适中双Pre
130Surrounded Regions42.2%适中FloodFill
131Palindrome Partitioning68.7%适中Palindrome&Backtracking
132Palindrome Partitioning II43.4%困难Palindrome&DP
133Clone Graph64.6%适中基础
134Gas Station53.9%适中数学定理
135Candy44.4%困难基础
136Single Number69.6%简单异或
137Single Number II67.8%适中不重要
138Copy List with Random Pointer55.9%适中基础
139Word Break47.4%适中字符串问题
140Word Break II38.5%困难实现题
141Linked List Cycle49.1%简单
142Linked List Cycle II51.5%适中
143Reorder List56.4%适中综合练习
144Binary Tree Preorder Traversal66.5%简单基础
145Binary Tree Postorder Traversal72.2%简单基础
146LRU Cache50.5%适中是否
147Insertion Sort List65%适中数组相关
148Sort List66.7%适中数组相关
149Max Points on a Line23%困难点线
150Evaluate Reverse Polish Notation50.4%适中表达式计算
151Reverse Words in a String43.1%适中基础
152Maximum Product Subarray40.2%适中一维
153Find Minimum in Rotated Sorted Array51.5%适中旋转
154Find Minimum in Rotated Sorted Array II50.1%困难旋转
155Min Stack55.1%简单应用
156Binary Tree Upside Down74.5%适中不重要
157Read N Characters Given Read451.1%简单实现题
158Read N Characters Given Read4 II - Call multiple times55.3%困难实现题
159Longest Substring with At Most Two Distinct Characters51.8%适中Substring&Sliding Window
160Intersection of Two Linked Lists56.2%简单数组相关
161One Edit Distance33%适中Java基础
162Find Peak Element47.3%适中基础
163Missing Ranges26.2%简单对比上一题
164Maximum Gap55.1%困难桶排序
165Compare Version Numbers42.6%适中Java基础
167Two Sum II - Input array is sorted56.5%简单基础
168Excel Sheet Column Title38.2%简单Java基础
169Majority Element64.3%简单数学定理
170Two Sum III - Data structure design41%简单HashMap
171Excel Sheet Column Number67.9%简单Java基础
172Factorial Trailing Zeroes39.9%简单特殊
173Binary Search Tree Iterator74.1%适中BST&Inorder
174Dungeon Game48.1%困难网格问题
179Largest Number36.9%适中不重要
186Reverse Words in a String II73.9%适中基础
187Repeated DNA Sequences45.1%适中Subsequence&HashSet
188Best Time to Buy and Sell Stock IV30.2%困难实现题
189Rotate Array42.7%适中交换
190Reverse Bits60.9%简单n&1
191Number of 1 Bits69.2%简单n-1
198House Robber46.5%适中实现题
199Binary Tree Right Side View64.2%适中BFS
200Number of Islands50.1%适中Flood Fill
201Bitwise AND of Numbers Range47.1%适中不重要
202Happy Number60.5%简单不重要
203Remove Linked List Elements46.1%简单删除
204Count Primes34.9%简单规律
205Isomorphic Strings47.3%简单计数排序
206Reverse Linked List70.3%简单反转
207Course Schedule54%适中拓扑排序
208Implement Trie (Prefix Tree)68.5%适中字典树
209Minimum Size Subarray Sum44.4%适中子数组
210Course Schedule II51.6%适中拓扑排序
211Design Add and Search Words Data Structure46%适中字典树
212Word Search II42.3%困难字典树
213House Robber II39.3%适中实现题
214Shortest Palindrome32.4%困难Palindrome
215Kth Largest Element in an Array64.4%适中基础
216Combination Sum III71.7%适中组合
217Contains Duplicate52.9%简单HashSet
218The Skyline Problem43.6%困难极难
219Contains Duplicate II40.1%简单HashSet
220Contains Duplicate III26.4%适中TreeSet&桶排序
221Maximal Square42.8%适中网格问题
222Count Complete Tree Nodes71.7%适中不重要
223Rectangle Area43.6%适中不重要
224Basic Calculator38.4%困难表达式计算
225Implement Stack using Queues65.5%简单应用
226Invert Binary Tree76.3%简单BFS
227Basic Calculator II37%适中表达式计算
228Summary Ranges53.5%简单Sliding Window
229Majority Element II43.5%适中实现题
230Kth Smallest Element in a BST71.6%适中BST&Inorder
231Power of Two48.5%简单n-1
232Implement Queue using Stacks64.9%简单应用
233Number of Digit One37.1%困难不重要
234Palindrome Linked List43.1%简单综合练习
235Lowest Common Ancestor of a Binary Search Tree64.8%简单BST
236Lowest Common Ancestor of a Binary Tree65%适中Postorder
237Delete Node in a Linked List82.6%简单删除
238Product of Array Except Self70.7%适中子数组
239Sliding Window Maximum48.8%困难Sliding Window&Deque
240Search a 2D Matrix II41.8%适中二维数组
241Different Ways to Add Parentheses72%适中Parentheses
242Valid Anagram61%简单Anagram
243Shortest Word Distance64.8%简单实现题
244Shortest Word Distance II51.6%适中HashMap
245Shortest Word Distance III60.8%适中实现题
246Strobogrammatic Number46.5%简单实现题
247Strobogrammatic Number II50.8%适中实现题
248Strobogrammatic Number III42.1%困难实现题
249Group Shifted Strings62%适中HashMap
250Count Univalue Subtrees63.9%适中Postorder
251Flatten 2D Vector53.2%适中实现题
252Meeting Rooms54.1%简单区间问题
253Meeting Rooms II45.9%适中区间问题
254Factor Combinations56.9%适中组合
255Verify Preorder Sequence in Binary Search Tree45.5%适中不重要
256Paint House57.2%适中实现题
257Binary Tree Paths64.8%简单Preorder
258Add Digits67.5%简单加减乘除
2593Sum Smaller55.8%适中三指针
260Single Number III73.4%适中不重要
261Graph Valid Tree47.7%适中并查集
263Ugly Number49.4%简单实现题
264Ugly Number II53.6%适中实现题
265Paint House II53.8%困难实现题
266Palindrome Permutation64.4%简单Palindrome
267Palindrome Permutation II41.6%适中Palindrome&Backtracking
268Missing Number56.7%简单异或
269Alien Dictionary33.5%困难拓扑排序
270Closest Binary Search Tree Value52%简单BST
271Encode and Decode Strings54%适中实现题
272Closest Binary Search Tree Value II61.9%困难BST&Inorder
273Integer to English Words28.4%困难实现题
274H-Index38.7%适中计数排序
275H-Index II41.6%适中基础
276Paint Fence45.6%适中实现题
277Find the Celebrity56.6%适中实现题
278First Bad Version40.3%简单基础
279Perfect Squares57.4%适中实现题
280Wiggle Sort68.3%适中交换
281Zigzag Iterator74.7%适中Iterator
282Expression Add Operators34%困难实现题
283Move Zeroes62%简单冒泡排序
284Peeking Iterator71.2%适中Iterator
285Inorder Successor in BST62.2%适中BST&Inorder
286Walls and Gates47.2%适中Flood Fill
287Find the Duplicate Number65.8%适中选择排序
288Unique Word Abbreviation33.1%适中HashMap
289Game of Life74.4%适中特殊
290Word Pattern43.3%简单HashMap
291Word Pattern II52.6%适中不重要
292Nim Game69.4%简单不重要
293Flip Game70.6%简单实现题
294Flip Game II57.5%适中实现题
295Find Median from Data Stream47.6%困难PriorityQueue
296Best Meeting Point59.7%困难实现题
297Serialize and Deserialize Binary Tree51.7%困难BST&Inorder
298Binary Tree Longest Consecutive Sequence56.1%适中Preorder
299Bulls and Cows48.3%适中计数排序
300Longest Increasing Subsequence45.1%适中字符串问题
301Remove Invalid Parentheses47.8%困难Parentheses&极难
302Smallest Rectangle Enclosing Black Pixels69.4%困难二维数组
303Range Sum Query - Immutable62.8%简单307,308基础
304Range Sum Query 2D - Immutable45.2%适中307,308基础
305Number of Islands II33.5%困难并查集
306Additive Number32.3%适中不重要
307Range Sum Query - Mutable56.4%适中树状数组,线断树
308Range Sum Query 2D - Mutable59.1%困难树状数组,线断树
309Best Time to Buy and Sell Stock with Cooldown57%适中实现题
310Minimum Height Trees34.4%适中BFS
311Sparse Matrix Multiplication74.7%适中不重要
312Burst Balloons66.9%困难超难
313Super Ugly Number63.5%适中基础
314Binary Tree Vertical Order Traversal54.7%适中难且重要
315Count of Smaller Numbers After Self41.3%困难递减
316Remove Duplicate Letters40.4%适中HashMap
317Shortest Distance from All Buildings47.5%困难Flood Fill
318Maximum Product of Word Lengths64.4%适中BitMap
319Bulb Switcher46.9%适中不重要
320Generalized Abbreviation65.2%适中实现题
321Create Maximum Number31%困难不重要
322Coin Change40.9%适中背包变形
323Number of Connected Components in an Undirected Graph59%适中并查集
324Wiggle Sort II35.9%适中不重要
325Maximum Size Subarray Sum Equals k49.9%适中子数组
326Power of Three47.1%简单不重要
327Count of Range Sum35.6%困难不重要
328Odd Even Linked List63.1%适中基础操作
329Longest Increasing Path in a Matrix46.2%困难Flood Fill
330Patching Array42.4%困难基础
331Verify Preorder Serialization of a Binary Tree45.2%适中不重要
332Reconstruct Itinerary39%适中转换图
333Largest BST Subtree43%适中不重要
334Increasing Triplet Subsequence38.9%适中选择排序
335Self Crossing33.7%困难不重要
336Palindrome Pairs39.6%困难Palindrome
337House Robber III60%适中Postorder
338Counting Bits75.6%简单不重要
339Nested List Weight Sum79.1%适中DFS,BFS
340Longest Substring with At Most K Distinct Characters48.2%适中Substring&Sliding Window
341Flatten Nested List Iterator64.2%适中Stack
342Power of Four49.2%简单不重要
344Reverse String71.3%简单基础
345Reverse Vowels of a String50.5%简单基础
346Moving Average from Data Stream68.3%简单Queue
347Top K Frequent Elements60.6%适中基础
348Design Tic-Tac-Toe58.1%适中实现题
349Intersection of Two Arrays70.4%简单基础
350Intersection of Two Arrays II52.5%简单HashMap
351Android Unlock Patterns57%适中不重要
353Design Snake Game41%适中边界
354Russian Doll Envelopes36.5%困难递增
355Design Twitter41.3%适中综合
356Line Reflection30.8%适中线
357Count Numbers with Unique Digits51.5%适中不重要
358Rearrange String k Distance Apart34.3%困难基础
359Logger Rate Limiter70.7%简单HashMap
360Sort Transformed Array60.4%适中不重要
361Bomb Enemy54.1%适中伪DP
362Design Hit Counter68%适中Queue
363Max Sum of Rectangle No Larger Than K38%困难TreeSet
364Nested List Weight Sum II70%适中DFS
365Water and Jug Problem35.1%适中数学定理
366Find Leaves of Binary Tree74.2%适中Postorder
367Valid Perfect Square43.4%简单开方
368Largest Divisible Subset38.2%适中不重要
369Plus One Linked List61.8%适中数组相关
370Range Addition66.8%适中实现题
371Sum of Two Integers55.8%适中不重要
372Super Pow43.7%适中不重要
373Find K Pairs with Smallest Sums42.9%适中基础
374Guess Number Higher or Lower45.3%简单基础
375Guess Number Higher or Lower II39.7%适中超难
376Wiggle Subsequence42.2%适中实现题
377Combination Sum IV42.8%适中背包变形
378Kth Smallest Element in a Sorted Matrix62.6%适中基础
379Design Phone Directory66.3%适中Queue
380Insert Delete GetRandom O(1)48.8%适中A&H
381Insert Delete GetRandom O(1) - Duplicates allowed38%困难A&H
382Linked List Random Node57.4%适中基础
383Ransom Note54.4%简单计数排序
384Shuffle an Array53.2%适中基础
385Mini Parser39.6%适中压栈匹配
386Lexicographical Numbers71.6%适中不重要
387First Unique Character in a String46.5%简单计数排序
388Longest Absolute File Path47.6%适中压栈匹配
389Find the Difference62.6%简单异或
390Elimination Game44.6%适中不重要
391Perfect Rectangle27%困难不重要
392Is Subsequence50.5%简单Subsequence
393UTF-8 Validation38.9%适中不重要
394Decode String53%适中压栈匹配
395Longest Substring with At Least K Repeating Characters44%适中Substring&Sliding Window
396Rotate Function40.2%适中不重要
397Integer Replacement36%适中特殊考察
398Random Pick Index62.3%适中基础
399Evaluate Division54.9%适中转换图
400Nth Digit38%适中不重要

重点250

1Two Sum49.3%简单HashMap手写过
3Longest Substring Without Repeating Characters35.4%适中HashMap看过思路
5Longest Palindromic Substring31.6%适中Palindrome
7Reverse Integer34.6%简单基础
8String to Integer (atoi)20.9%适中基础
10Regular Expression Matching30.2%困难超难
12Integer to Roman64.2%适中实现题
13Roman to Integer62%简单实现题
153Sum29.1%适中求和
17Letter Combinations of a Phone Number54.3%适中实现题
184Sum38.3%适中求和
20Valid Parentheses42.8%简单平衡符号
22Generate Parentheses76%适中Parentheses
23Merge k Sorted Lists52.8%困难数组相关&PriorityQueue
29Divide Two Integers20.1%适中加减乘除
31Next Permutation34.4%适中排列&规律
32Longest Valid Parentheses33.6%困难Parentheses
33Search in Rotated Sorted Array38.5%适中旋转
34Find First and Last Position of Element in Sorted Array40.2%适中基础
35Search Insert Position46.6%简单基础
36Valid Sudoku60.5%适中特殊
37Sudoku Solver62.4%困难特殊
38Count and Say56.2%适中实现题
39Combination Sum69.5%适中组合
40Combination Sum II62.5%适中组合
43Multiply Strings44.5%适中加减乘除
44Wildcard Matching31.2%困难超难
46Permutations76.7%适中排列
48Rotate Image69.2%适中二维数组
49Group Anagrams63.1%适中Group&Anagram
50Pow(x, n)36.4%适中开方
51N-Queens70.7%困难极难
52N-Queens II79.2%困难极难
53Maximum Subarray52.1%简单一维
54Spiral Matrix41%适中二维数组
59Spiral Matrix II78%适中二维数组
60Permutation Sequence49.1%困难排列&规律
62Unique Paths61.8%适中网格问题
64Minimum Path Sum67.5%适中网格问题
65Valid Number20.6%困难
67Add Binary54.4%简单加减乘除
68Text Justification44.3%困难极难
69Sqrt(x)38.8%简单开方
70Climbing Stairs50.3%简单网格问题
71Simplify Path40.4%适中压栈匹配
72Edit Distance59.7%困难匹配问题
74Search a 2D Matrix38.7%适中二维数组
75Sort Colors55.3%适中荷兰国旗
76Minimum Window Substring38.8%困难Substring&Sliding Window
77Combinations74.5%适中组合
78Subsets77.8%适中子集&位运算
79Word Search42.3%适中Flood Fill
81Search in Rotated Sorted Array II35.8%适中旋转
82Remove Duplicates from Sorted List II48.9%适中删除
84Largest Rectangle in Histogram41.4%困难迭代极值
85Maximal Rectangle47.6%困难迭代极值
88Merge Sorted Array48.4%简单合并排序
90Subsets II60.7%适中子集
91Decode Ways24.3%适中匹配问题
96Unique Binary Search Trees69.1%适中结合
98Validate Binary Search Tree32.2%适中双Pre
101Symmetric Tree52.8%简单双Pre
104Maximum Depth of Binary Tree74.8%简单Postorder
108Convert Sorted Array to Binary Search Tree73.9%简单BST
110Balanced Binary Tree54.5%简单Postorder
111Minimum Depth of Binary Tree43.2%简单双Pre
112Path Sum51%简单双Pre
113Path Sum II60.8%适中Preorder
115Distinct Subsequences48.7%困难匹配问题
116Populating Next Right Pointers in Each Node62.2%适中难且重要
117Populating Next Right Pointers in Each Node II51.2%适中难且重要
124Binary Tree Maximum Path Sum43%困难Postorder
125Valid Palindrome46.2%简单Palindrome
126Word Ladder II38.5%困难拓扑排序
127Word Ladder43.2%困难BFS
130Surrounded Regions42.2%适中FloodFill
133Clone Graph64.6%适中基础
138Copy List with Random Pointer55.9%适中基础
139Word Break47.4%适中字符串问题
140Word Break II38.5%困难实现题
142Linked List Cycle II51.5%适中
149Max Points on a Line23%困难点线
150Evaluate Reverse Polish Notation50.4%适中表达式计算
152Maximum Product Subarray40.2%适中一维
153Find Minimum in Rotated Sorted Array51.5%适中旋转
154Find Minimum in Rotated Sorted Array II50.1%困难旋转
155Min Stack55.1%简单应用
157Read N Characters Given Read451.1%简单实现题
158Read N Characters Given Read4 II - Call multiple times55.3%困难实现题
161One Edit Distance33%适中Java基础
162Find Peak Element47.3%适中基础
163Missing Ranges26.2%简单对比上一题
168Excel Sheet Column Title38.2%简单Java基础
171Excel Sheet Column Number67.9%简单Java基础
173Binary Search Tree Iterator74.1%适中BST&Inorder
174Dungeon Game48.1%困难网格问题
191Number of 1 Bits69.2%简单n-1
198House Robber46.5%适中实现题
200Number of Islands50.1%适中Flood Fill
201Bitwise AND of Numbers Range47.1%适中不重要
202Happy Number60.5%简单不重要
204Count Primes34.9%简单规律
207Course Schedule54%适中拓扑排序
208Implement Trie (Prefix Tree)68.5%适中字典树
209Minimum Size Subarray Sum44.4%适中子数组
210Course Schedule II51.6%适中拓扑排序
211Design Add and Search Words Data Structure46%适中字典树
212Word Search II42.3%困难字典树
213House Robber II39.3%适中实现题
214Shortest Palindrome32.4%困难Palindrome
215Kth Largest Element in an Array64.4%适中基础
216Combination Sum III71.7%适中组合
218The Skyline Problem43.6%困难极难
221Maximal Square42.8%适中网格问题
224Basic Calculator38.4%困难表达式计算
225Implement Stack using Queues65.5%简单应用
226Invert Binary Tree76.3%简单BFS
227Basic Calculator II37%适中表达式计算
228Summary Ranges53.5%简单Sliding Window
230Kth Smallest Element in a BST71.6%适中BST&Inorder
231Power of Two48.5%简单n-1
232Implement Queue using Stacks64.9%简单应用
235Lowest Common Ancestor of a Binary Search Tree64.8%简单BST
236Lowest Common Ancestor of a Binary Tree65%适中Postorder
238Product of Array Except Self70.7%适中子数组
240Search a 2D Matrix II41.8%适中二维数组
241Different Ways to Add Parentheses72%适中Parentheses
249Group Shifted Strings62%适中HashMap
251Flatten 2D Vector53.2%适中实现题
254Factor Combinations56.9%适中组合
256Paint House57.2%适中实现题
257Binary Tree Paths64.8%简单Preorder
261Graph Valid Tree47.7%适中并查集
263Ugly Number49.4%简单实现题
264Ugly Number II53.6%适中实现题
265Paint House II53.8%困难实现题
268Missing Number56.7%简单异或
269Alien Dictionary33.5%困难拓扑排序
270Closest Binary Search Tree Value52%简单BST
271Encode and Decode Strings54%适中实现题
273Integer to English Words28.4%困难实现题
276Paint Fence45.6%适中实现题
278First Bad Version40.3%简单基础
279Perfect Squares57.4%适中实现题
280Wiggle Sort68.3%适中交换
282Expression Add Operators34%困难实现题
283Move Zeroes62%简单冒泡排序
284Peeking Iterator71.2%适中Iterator
285Inorder Successor in BST62.2%适中BST&Inorder
286Walls and Gates47.2%适中Flood Fill
288Unique Word Abbreviation33.1%适中HashMap
291Word Pattern II52.6%适中不重要
296Best Meeting Point59.7%困难实现题
297Serialize and Deserialize Binary Tree51.7%困难BST&Inorder
298Binary Tree Longest Consecutive Sequence56.1%适中Preorder
300Longest Increasing Subsequence45.1%适中字符串问题
301Remove Invalid Parentheses47.8%困难Parentheses&极难
302Smallest Rectangle Enclosing Black Pixels69.4%困难二维数组
305Number of Islands II33.5%困难并查集
307Range Sum Query - Mutable56.4%适中树状数组,线断树
308Range Sum Query 2D - Mutable59.1%困难树状数组,线断树
311Sparse Matrix Multiplication74.7%适中不重要
312Burst Balloons66.9%困难超难
314Binary Tree Vertical Order Traversal54.7%适中难且重要
316Remove Duplicate Letters40.4%适中HashMap
317Shortest Distance from All Buildings47.5%困难Flood Fill
318Maximum Product of Word Lengths64.4%适中BitMap
322Coin Change40.9%适中背包变形
323Number of Connected Components in an Undirected Graph59%适中并查集
324Wiggle Sort II35.9%适中不重要
325Maximum Size Subarray Sum Equals k49.9%适中子数组
329Longest Increasing Path in a Matrix46.2%困难Flood Fill
336Palindrome Pairs39.6%困难Palindrome
337House Robber III60%适中Postorder
338Counting Bits75.6%简单不重要
339Nested List Weight Sum79.1%适中DFS,BFS
340Longest Substring with At Most K Distinct Characters48.2%适中Substring&Sliding Window
341Flatten Nested List Iterator64.2%适中Stack
346Moving Average from Data Stream68.3%简单Queue
348Design Tic-Tac-Toe58.1%适中实现题
350Intersection of Two Arrays II52.5%简单HashMap
351Android Unlock Patterns57%适中不重要
353Design Snake Game41%适中边界
354Russian Doll Envelopes36.5%困难递增
359Logger Rate Limiter70.7%简单HashMap
361Bomb Enemy54.1%适中伪DP
362Design Hit Counter68%适中Queue
364Nested List Weight Sum II70%适中DFS
367Valid Perfect Square43.4%简单开方
374Guess Number Higher or Lower45.3%简单基础
375Guess Number Higher or Lower II39.7%适中超难
376Wiggle Subsequence42.2%适中实现题
377Combination Sum IV42.8%适中背包变形
378Kth Smallest Element in a Sorted Matrix62.6%适中基础
379Design Phone Directory66.3%适中Queue
380Insert Delete GetRandom O(1)48.8%适中A&H
381Insert Delete GetRandom O(1) - Duplicates allowed38%困难A&H
384Shuffle an Array53.2%适中基础
385Mini Parser39.6%适中压栈匹配
389Find the Difference62.6%简单异或
394Decode String53%适中压栈匹配
398Random Pick Index62.3%适中基础

推荐的资源和网课

九章算法

九章算法班 2023版 - 九章算法 - 帮助更多程序员找到好工作,硅谷顶尖IT企业工程师实时在线授课为你传授面试技巧

左程云

配套资源

算法第四版
以及网站

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值