1 |
Two Sum |
双指针 |
2 |
Add Two Numbers |
模拟,链表 |
3 |
Longest Substring Without Repeating Characters |
模拟,字符串 |
4 |
Median of Two Sorted Arrays |
二分 |
5 |
Longest Palindromic Substring |
动态规划 |
6 |
ZigZag Conversion |
模拟,找规律 |
7 |
Reverse Integer |
模拟 |
8 |
String to Integer (atoi) |
字符串 |
9 |
Palindrome Number |
模拟 |
10 |
Regular Expression Matching |
搜索,动态规划 |
11 |
Container With Most Water |
双指针,贪心 |
12 |
Integer to Roman |
模拟 |
13 |
Roman to Integer |
模拟 |
14 |
Longest Common Prefix |
模拟,字符串 |
15 |
3Sum |
模拟 |
16 |
3Sum Closest |
双指针 |
17 |
Letter Combinations of a Phone Number |
搜索 |
18 |
4Sum |
双指针,搜索 |
19 |
Remove Nth Node From End of List |
双指针 |
20 |
Valid Parentheses |
栈 |
21 |
Merge Two Sorted Lists |
链表 |
22 |
Generate Parentheses |
搜索 |
23 |
Merge k Sorted Lists |
链表,堆 |
24 |
Swap Nodes in Pairs |
链表,递归 |
25 |
Reverse Nodes in k-Group |
链表 |
26 |
Remove Duplicates from Sorted Array |
双指针 |
27 |
Remove Element |
双指针 |
28 |
Implement strStr() |
KMP |
29 |
Divide Two Integers |
递归 |
30 |
Substring with Concatenation of All Words |
字符串 |
31 |
Next Permutation |
找规律 |
32 |
Longest Valid Parentheses |
双指针,动态规划,栈 |
33 |
Search in Rotated Sorted Array |
二分 |
34 |
Find First and Last Position of Element in Sorted Array |
二分 |
35 |
Search Insert Position |
二分 |
36 |
Valid Sudoku |
模拟 |
37 |
Sudoku Solver |
递归 |
38 |
Count and Say |
模拟,字符串 |
39 |
Combination Sum |
动态规划,递归 |
40 |
Combination Sum II |
递归 |
41 |
First Missing Positive |
模拟 |
42 |
Trapping Rain Water |
双指针,动态规划,栈 |
43 |
Multiply Strings |
字符串 |
44 |
Wildcard Matching |
动态规划,递归 |
45 |
Jump Game II |
贪心 |
46 |
Permutations |
递归 |
47 |
Permutations II |
递归 |
48 |
Rotate Image |
模拟 |
49 |
Group Anagrams |
模拟 |
50 |
Pow(x, n) |
快速幂 |
51 |
N-Queens |
递归 |
52 |
N-Queens II |
递归 |
53 |
Maximum Subarray |
动态规划 |
54 |
Spiral Matrix |
模拟 |
55 |
Jump Game |
贪心 |
56 |
Merge Intervals |
模拟 |
57 |
Insert Interval |
模拟 |
58 |
Length of Last Word |
模拟 |
59 |
Spiral Matrix II |
模拟 |
60 |
Permutation Sequence |
模拟 |
61 |
Rotate List |
链表 |
62 |
Unique Paths |
动态规划 |
63 |
Unique Paths II |
动态规划 |
64 |
Minimum Path Sum |
动态规划 |
65 |
Valid Number |
模拟 |
66 |
Plus One |
模拟 |
67 |
Add Binary |
模拟 |
68 |
Text Justification |
模拟 |
69 |
Sqrt(x) |
二分 |
70 |
Climbing Stairs |
动态规划 |
71 |
Simplify Path |
栈 |
72 |
Edit Distance |
动态规划 |
73 |
Set Matrix Zeroes |
模拟 |
74 |
Search a 2D Matrix |
模拟 |
75 |
Sort Colors |
多指针 |
76 |
Minimum Window Substring |
字符串 |
77 |
Combinations |
搜索 |
78 |
Subsets |
搜索 |
79 |
Word Search |
搜索 |
80 |
Remove Duplicates from Sorted Array II |
双指针 |
81 |
Search in Rotated Sorted Array II |
二分 |
82 |
Remove Duplicates from Sorted List II |
链表 |
83 |
Remove Duplicates from Sorted List |
链表 |
84 |
Largest Rectangle in Histogram |
动态规划 |
85 |
Maximal Rectangle |
动态规划 |
86 |
Partition List |
链表 |
87 |
Scramble String |
搜索,记忆化搜索,动态规划 |
88 |
Merge Sorted Array |
模拟 |
89 |
Gray Code |
模拟 |
90 |
Subsets II |
搜索 |
91 |
Decode Ways |
搜索,动态规划 |
92 |
Reverse Linked List II |
链表 |
93 |
Restore IP Addresses |
模拟 |
94 |
Binary Tree Inorder Traversal |
中序遍历 |
95 |
Unique Binary Search Trees II |
二叉搜索树,递归 |
96 |
Unique Binary Search Trees |
二叉搜索树,动态规划 |
97 |
Interleaving String |
搜索,动态规划 |
98 |
Validate Binary Search Tree |
二叉搜索树 |
99 |
Recover Binary Search Tree |
二叉搜索树 |
100 |
Same Tree |
递归 |