1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| // Easy题目(建立信心)
const easyProblems = [
'Two Sum', // 数组,哈希表
'Reverse Integer', // 数学
'Palindrome Number', // 字符串
'Valid Parentheses', // 栈
'Merge Two Sorted Lists', // 链表
'Maximum Subarray', // 数组,动态规划
'Climbing Stairs', // 动态规划
'Best Time to Buy and Sell Stock' // 数组
]
// Medium题目(核心练习)
const mediumProblems = [
'Add Two Numbers', // 链表
'Longest Substring Without Repeating Characters', // 滑动窗口
'Valid Parentheses', // 栈
'Merge K Sorted Lists', // 堆
'Valid Sudoku', // 矩阵
'Implement Trie (Prefix Tree)', // 字典树
'Coin Change', // 动态规划
'House Robber II', // 动态规划
'Unique Paths', // 动态规划
'Jump Game' // 贪心算法
]
// Hard题目(挑战极限)
const hardProblems = [
'Median of Two Sorted Arrays', // 二分查找
'Regular Expression Matching', // 动态规划
'Merge K Sorted Lists', // 堆
'Reverse Nodes in k-Group', // 链表
'Subsets', // 回溯
'Word Break', // 动态规划
'Binary Tree Maximum Path Sum', // 树,递归
'Longest Valid Parentheses', // 栈,动态规划
'Best Time to Buy and Sell Stock III', // 动态规划
'Copy List with Random Pointer' // 链表
]
|