删除不常考,面试低频出现题目
删除重复代码题目(例:链表反转206题,代码在234题出现过)
删除过于简单题目(例:100题:Same Tree)
删除题意不同,代码基本相同题目(例:136 & 389,保留一个)
适用人群:有一定刷题基础,算法基础,二刷人群。
建议:400题全部刷完,再精刷这250题。
IDTitle
1Two Sum
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
7Reverse Integer
8String to Integer (atoi)
10Regular Expression Matching
11Container With Most Water
12Integer to Roman
13Roman to Integer
153Sum
17Letter Combinations of a Phone Number
184Sum
20Valid Parentheses
22Generate Parentheses
23Merge k Sorted Lists
26Remove Duplicates from Sorted Array
27Remove Element
28Implement strStr()
29Divide Two Integers
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
34Search for a Range
35Search Insert Position
36Valid Sudoku
37Sudoku Solver
38Count and Say
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
43Multiply Strings
44Wildcard Matching
45Jump Game II
46Permutations
47Permutations II
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
52N-Queens II
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
59Spiral Matrix II
60Permutation Sequence
62Unique Paths
64Minimum Path Sum
65Valid Number
66Plus One
67Add Binary
68Text Justification
69Sqrt(x)
70Climbing Stairs
71Simplify Path
72Edit Distance
74Search a 2D Matrix
75Sort Colors
76Minimum Window Substring
77Combinations
78Subsets
79Word Search
80Remove Duplicates from Sorted Array II
81Search in Rotated Sorted Array II
82Remove Duplicates from Sorted List II
84Largest Rectangle in Histogram
85Maximal Rectangle
88Merge Sorted Array
90Subsets II
91Decode Ways
96Unique Binary Search Trees
98Validate Binary Search Tree
101Symmetric Tree
104Maximum Depth of Binary Tree
108Convert Sorted Array to Binary Search Tree
110Balanced Binary Tree
111Minimum Depth of Binary Tree
112Path Sum
113Path Sum II
115Distinct Subsequences
116Populating Next Right Pointers in Each Node
117Populating Next Right Pointers in Each Node II
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
123Best Time to Buy and Sell Stock III
124Binary Tree Maximum Path Sum
125Valid Palindrome
126Word Ladder II
127Word Ladder
128Longest Consecutive Sequence
130Surrounded Regions
133Clone Graph
134Gas Station
138Copy List with Random Pointer
139Word Break
140Word Break II
142Linked List Cycle II
146LRU Cache
149Max Points on a Line
150Evaluate Reverse Polish Notation
152Maximum Product Subarray
153Find Minimum in Rotated Sorted Array
154Find Minimum in Rotated Sorted Array II
155Min Stack
157Read N Characters Given Read4
158Read N Characters Given Read4 II - Call multiple times
161One Edit Distance
162Find Peak Element
163Missing Ranges
168Excel Sheet Column Title
171Excel Sheet Column Number
173Binary Search Tree Iterator
186Reverse Words in a String II
174Dungeon Game
188Best Time to Buy and Sell Stock IV
189Rotate Array
191Number of 1 Bits
198House Robber
200Number of Islands
201Bitwise AND of Numbers Range
202Happy Number
204Count Primes
205Isomorphic Strings
207Course Schedule
208Implement Trie (Prefix Tree)
209Minimum Size Subarray Sum
210Course Schedule II
211Add and Search Word - Data structure design
212Word Search II
213House Robber II
214Shortest Palindrome
215Kth Largest Element in an Array
216Combination Sum III
217Contains Duplicate
218The Skyline Problem
219Contains Duplicate II
220Contains Duplicate III
221Maximal Square
224Basic Calculator
225Implement Stack using Queues
226Invert Binary Tree
227Basic Calculator II
228Summary Ranges
230Kth Smallest Element in a BST
231Power of Two
232Implement Queue using Stacks
235Lowest Common Ancestor of a Binary Search Tree
236Lowest Common Ancestor of a Binary Tree
238Product of Array Except Self
239Sliding Window Maximum
240Search a 2D Matrix II
241Different Ways to Add Parentheses
242Valid Anagram
244Shortest Word Distance II
245Shortest Word Distance III
249Group Shifted Strings
251Flatten 2D Vector
252Meeting Rooms
253Meeting Rooms II
254Factor Combinations
256Paint House
257Binary Tree Paths
261Graph Valid Tree
263Ugly Number
264Ugly Number II
265Paint House II
268Missing Number
269Alien Dictionary
270Closest Binary Search Tree Value
271Encode and Decode Strings
273Integer to English Words
274H-Index
275H-Index II
276Paint Fence
277Find the Celebrity
278First Bad Version
279Perfect Squares
280Wiggle Sort
282Expression Add Operators
283Move Zeroes
284Peeking Iterator
285Inorder Successor in BST
286Walls and Gates
287Find the Duplicate Number
288Unique Word Abbreviation
289Game of Life
290Word Pattern
291Word Pattern II
293Flip Game
294Flip Game II
295Find Median from Data Stream
296Best Meeting Point
297Serialize and Deserialize Binary Tree
298Binary Tree Longest Consecutive Sequence
299Bulls and Cows
300Longest Increasing Subsequence
301Remove Invalid Parentheses
302Smallest Rectangle Enclosing Black Pixels
305Number of Islands II
307Range Sum Query - Mutable
308Range Sum Query 2D - Mutable
309Best Time to Buy and Sell Stock with Cooldown
311Sparse Matrix Multiplication
312Burst Balloons
314Binary Tree Vertical Order Traversal
316Remove Duplicate Letters
317Shortest Distance from All Buildings
318Maximum Product of Word Lengths
322Coin Change
323Number of Connected Components in an Undirected Graph
324Wiggle Sort II
325Maximum Size Subarray Sum Equals k
329Longest Increasing Path in a Matrix
334Increasing Triplet Subsequence
336Palindrome Pairs
337House Robber III
338Counting Bits
339Nested List Weight Sum
340Longest Substring with At Most K Distinct Characters
341Flatten Nested List Iterator
346Moving Average from Data Stream
347Top K Frequent Elements
348Design Tic-Tac-Toe
350Intersection of Two Arrays II
351Android Unlock Patterns
352Data Stream as Disjoint Intervals
353Design Snake Game
354Russian Doll Envelopes
355Design Twitter
359Logger Rate Limiter
361Bomb Enemy
362Design Hit Counter
364Nested List Weight Sum II
367Valid Perfect Square
374Guess Number Higher or Lower
375Guess Number Higher or Lower II
376Wiggle Subsequence
377Combination Sum IV
378Kth Smallest Element in a Sorted Matrix
379Design Phone Directory
380Insert Delete GetRandom O(1)
381Insert Delete GetRandom O(1) - Duplicates allowed
384Shuffle an Array
385Mini Parser
389Find the Difference
394Decode String
398Random Pick Index