|
1 | 1 | # 算法
|
| 2 | +若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 |
2 | 3 | |题目|出现次数|链接|
|
3 | 4 | |-|-|-|
|
| 5 | +|300. 最长上升子序列|6|https://leetcode-cn.com/problems/longest-increasing-subsequence| |
| 6 | +|72. 编辑距离|6|https://leetcode-cn.com/problems/edit-distance| |
4 | 7 | |215. 数组中的第K个最大元素|4|https://leetcode-cn.com/problems/kth-largest-element-in-an-array|
|
| 8 | +|240. 搜索二维矩阵 II|3|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| |
| 9 | +|236. 二叉树的最近公共祖先|3|https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree| |
| 10 | +|64. 最小路径和|3|https://leetcode-cn.com/problems/minimum-path-sum| |
5 | 11 | |103. 二叉树的锯齿形层次遍历|3|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal|
|
6 |
| -|300. 最长上升子序列|3|https://leetcode-cn.com/problems/longest-increasing-subsequence| |
| 12 | +|200. 岛屿数量|3|https://leetcode-cn.com/problems/number-of-islands| |
| 13 | +|33. 搜索旋转排序数组|3|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| |
| 14 | +|102. 二叉树的层序遍历|3|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| |
7 | 15 | |105. 从前序与中序遍历序列构造二叉树|2|https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal|
|
8 |
| -|剑指 Offer 51. 数组中的逆序对|2|https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof| |
9 |
| -|236. 二叉树的最近公共祖先|2|https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree| |
10 |
| -|200. 岛屿数量|2|https://leetcode-cn.com/problems/number-of-islands| |
| 16 | +|88. 合并两个有序数组|2|https://leetcode-cn.com/problems/merge-sorted-array| |
| 17 | +|70. 爬楼梯|2|https://leetcode-cn.com/problems/climbing-stairs| |
| 18 | +|49. 字母异位词分组|2|https://leetcode-cn.com/problems/group-anagrams| |
| 19 | +|85. 最大矩形|2|https://leetcode-cn.com/problems/maximal-rectangle| |
| 20 | +|287. 寻找重复数|2|https://leetcode-cn.com/problems/find-the-duplicate-number| |
| 21 | +|5. 最长回文子串|2|https://leetcode-cn.com/problems/longest-palindromic-substring| |
| 22 | +|110. 平衡二叉树|2|https://leetcode-cn.com/problems/balanced-binary-tree| |
11 | 23 | |46. 全排列|2|https://leetcode-cn.com/problems/permutations|
|
| 24 | +|剑指 Offer 51. 数组中的逆序对|2|https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof| |
| 25 | +|239. 滑动窗口最大值|2|https://leetcode-cn.com/problems/sliding-window-maximum| |
12 | 26 | |121. 买卖股票的最佳时机|2|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock|
|
13 |
| -|49. 字母异位词分组|2|https://leetcode-cn.com/problems/group-anagrams| |
14 |
| -|剑指 Offer 29. 顺时针打印矩阵|2|https://leetcode-cn.com/problems/shun-shi-zhen-da-yin-ju-zhen-lcof| |
15 |
| -|70. 爬楼梯|2|https://leetcode-cn.com/problems/climbing-stairs| |
| 27 | +|15. 三数之和|2|https://leetcode-cn.com/problems/3sum| |
| 28 | +|补充题4. 手撕快速排序|2|https://leetcode-cn.com/problems/sort-an-array| |
| 29 | +|394. 字符串解码|2|https://leetcode-cn.com/problems/decode-string| |
| 30 | +|69. x 的平方根|2|https://leetcode-cn.com/problems/sqrtx| |
| 31 | +|572. 另一个树的子树|2|https://leetcode-cn.com/problems/subtree-of-another-tree| |
16 | 32 | |4. 寻找两个正序数组的中位数|2|https://leetcode-cn.com/problems/median-of-two-sorted-arrays|
|
17 | 33 | |23. 合并K个排序链表|2|https://leetcode-cn.com/problems/merge-k-sorted-lists|
|
18 |
| -|85. 最大矩形|2|https://leetcode-cn.com/problems/maximal-rectangle| |
19 |
| -|814. 二叉树剪枝|1|https://leetcode-cn.com/problems/binary-tree-pruning| |
20 |
| -|48. 旋转图像|1|https://leetcode-cn.com/problems/rotate-image| |
| 34 | +|1. 两数之和|2|https://leetcode-cn.com/problems/two-sum| |
| 35 | +|剑指 Offer 29. 顺时针打印矩阵|2|https://leetcode-cn.com/problems/shun-shi-zhen-da-yin-ju-zhen-lcof| |
| 36 | +|129. 求根到叶子节点数字之和|1|https://leetcode-cn.com/problems/sum-root-to-leaf-numbers| |
| 37 | +|剑指 Offer 10- I. 斐波那契数列|1|https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof| |
| 38 | +|403. 青蛙过河|1|https://leetcode-cn.com/problems/frog-jump| |
| 39 | +|41. 缺失的第一个正数|1|https://leetcode-cn.com/problems/first-missing-positive| |
21 | 40 | |96. 不同的二叉搜索树|1|https://leetcode-cn.com/problems/unique-binary-search-trees|
|
22 |
| -|110. 平衡二叉树|1|https://leetcode-cn.com/problems/balanced-binary-tree| |
23 |
| -|62. 不同路径|1|https://leetcode-cn.com/problems/unique-paths| |
24 |
| -|169. 多数元素|1|https://leetcode-cn.com/problems/majority-element| |
25 |
| -|238. 除自身以外数组的乘积|1|https://leetcode-cn.com/problems/product-of-array-except-self| |
26 |
| -|128. 最长连续序列|1|https://leetcode-cn.com/problems/longest-consecutive-sequence| |
27 |
| -|剑指 Offer 09. 用两个栈实现队列|1|https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof| |
28 |
| -|807. 保持城市天际线|1|https://leetcode-cn.com/problems/max-increase-to-keep-city-skyline| |
29 |
| -|718. 最长重复子数组|1|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| |
30 |
| -|572. 另一个树的子树|1|https://leetcode-cn.com/problems/subtree-of-another-tree| |
31 |
| -|102. 二叉树的层序遍历|1|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| |
32 |
| -|209. 长度最小的子数组|1|https://leetcode-cn.com/problems/minimum-size-subarray-sum| |
33 | 41 | |面试题 16.03. 交点|1|https://leetcode-cn.com/problems/intersection-lcci|
|
| 42 | +|297. 二叉树的序列化与反序列化|1|https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree| |
| 43 | +|582. 杀死进程|1|https://leetcode-cn.com/problems/kill-process| |
| 44 | +|334. 递增的三元子序列|1|https://leetcode-cn.com/problems/increasing-triplet-subsequence| |
| 45 | +|440. 字典序的第K小数字|1|https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order| |
| 46 | +|718. 最长重复子数组|1|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| |
| 47 | +|3. 无重复字符的最长子串|1|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| |
| 48 | +|32. 最长有效括号|1|https://leetcode-cn.com/problems/longest-valid-parentheses| |
| 49 | +|1143. 最长公共子序列|1|https://leetcode-cn.com/problems/longest-common-subsequence| |
| 50 | +|25. K 个一组翻转链表|1|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| |
| 51 | +|98. 验证二叉搜索树|1|https://leetcode-cn.com/problems/validate-binary-search-tree| |
| 52 | +|407. 接雨水 II|1|https://leetcode-cn.com/problems/trapping-rain-water-ii| |
| 53 | +|107. 二叉树的层次遍历 II|1|https://leetcode-cn.com/problems/binary-tree-level-order-traversal-ii| |
| 54 | +|871. 最低加油次数|1|https://leetcode-cn.com/problems/minimum-number-of-refueling-stops| |
34 | 55 | |104. 二叉树的最大深度|1|https://leetcode-cn.com/problems/maximum-depth-of-binary-tree|
|
35 |
| -|2. 两数相加|1|https://leetcode-cn.com/problems/add-two-numbers| |
36 |
| -|560. 和为K的子数组|1|https://leetcode-cn.com/problems/subarray-sum-equals-k| |
37 |
| -|287. 寻找重复数|1|https://leetcode-cn.com/problems/find-the-duplicate-number| |
38 |
| -|239. 滑动窗口最大值|1|https://leetcode-cn.com/problems/sliding-window-maximum| |
39 |
| -|33. 搜索旋转排序数组|1|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| |
| 56 | +|632. 最小区间|1|https://leetcode-cn.com/problems/smallest-range-covering-elements-from-k-lists| |
| 57 | +|1505. 最多 K 次交换相邻数位后得到的最小整数|1|https://leetcode-cn.com/problems/minimum-possible-integer-after-at-most-k-adjacent-swaps-on-digits| |
| 58 | +|227. 基本计算器 II|1|https://leetcode-cn.com/problems/basic-calculator-ii| |
| 59 | +|221. 最大正方形|1|https://leetcode-cn.com/problems/maximal-square| |
| 60 | +|726. 原子的数量|1|https://leetcode-cn.com/problems/number-of-atoms| |
| 61 | +|306. 累加数|1|https://leetcode-cn.com/problems/additive-number| |
| 62 | +|415. 字符串相加|1|https://leetcode-cn.com/problems/add-strings| |
| 63 | +|160. 相交链表|1|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| |
| 64 | +|42. 接雨水|1|https://leetcode-cn.com/problems/trapping-rain-water| |
| 65 | +|1420. 生成数组|1|https://leetcode-cn.com/problems/build-array-where-you-can-find-the-maximum-exactly-k-comparisons| |
| 66 | +|636. 函数的独占时间|1|https://leetcode-cn.com/problems/exclusive-time-of-functions| |
| 67 | +|405. 数字转换为十六进制数|1|https://leetcode-cn.com/problems/convert-a-number-to-hexadecimal| |
| 68 | +|1363. 形成三的最大倍数|1|https://leetcode-cn.com/problems/largest-multiple-of-three| |
| 69 | +|128. 最长连续序列|1|https://leetcode-cn.com/problems/longest-consecutive-sequence| |
| 70 | +|48. 旋转图像|1|https://leetcode-cn.com/problems/rotate-image| |
| 71 | +|209. 长度最小的子数组|1|https://leetcode-cn.com/problems/minimum-size-subarray-sum| |
40 | 72 | |509. 斐波那契数|1|https://leetcode-cn.com/problems/fibonacci-number|
|
| 73 | +|剑指 Offer 54. 二叉搜索树的第k大节点|1|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof| |
| 74 | +|124. 二叉树中的最大路径和|1|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| |
| 75 | +|剑指 Offer 09. 用两个栈实现队列|1|https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof| |
41 | 76 | |255. 验证前序遍历序列二叉搜索树|1|https://leetcode-cn.com/problems/verify-preorder-sequence-in-binary-search-tree|
|
42 |
| -|179. 最大数|1|https://leetcode-cn.com/problems/largest-number| |
43 |
| -|3. 无重复字符的最长子串|1|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| |
44 |
| -|240. 搜索二维矩阵 II|1|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| |
45 |
| -|5. 最长回文子串|1|https://leetcode-cn.com/problems/longest-palindromic-substring| |
46 |
| -|15. 三数之和|1|https://leetcode-cn.com/problems/3sum| |
47 |
| -|445. 两数相加 II|1|https://leetcode-cn.com/problems/add-two-numbers-ii| |
48 |
| -|437. 路径总和 III|1|https://leetcode-cn.com/problems/path-sum-iii| |
49 |
| -|426. 将二叉搜索树转化为排序的双向链表|1|https://leetcode-cn.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list| |
50 |
| -|376. 摆动序列|1|https://leetcode-cn.com/problems/wiggle-subsequence| |
51 | 77 | |152. 乘积最大子数组|1|https://leetcode-cn.com/problems/maximum-product-subarray|
|
52 |
| -|122. 买卖股票的最佳时机 II|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| |
53 |
| -|32. 最长有效括号|1|https://leetcode-cn.com/problems/longest-valid-parentheses| |
54 |
| -|297. 二叉树的序列化与反序列化|1|https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree| |
55 |
| -|20. 有效的括号|1|https://leetcode-cn.com/problems/valid-parentheses| |
56 |
| -|315. 计算右侧小于当前元素的个数|1|https://leetcode-cn.com/problems/count-of-smaller-numbers-after-self| |
57 |
| -|582. 杀死进程|1|https://leetcode-cn.com/problems/kill-process| |
58 |
| -|1. 两数之和|1|https://leetcode-cn.com/problems/two-sum| |
59 |
| -|264. 丑数 II|1|https://leetcode-cn.com/problems/ugly-number-ii| |
60 | 78 | |518. 零钱兑换 II|1|https://leetcode-cn.com/problems/coin-change-2|
|
61 |
| -|1363. 形成三的最大倍数|1|https://leetcode-cn.com/problems/largest-multiple-of-three| |
62 |
| -|160. 相交链表|1|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| |
63 |
| -|88. 合并两个有序数组|1|https://leetcode-cn.com/problems/merge-sorted-array| |
64 |
| -|64. 最小路径和|1|https://leetcode-cn.com/problems/minimum-path-sum| |
65 |
| -|1143. 最长公共子序列|1|https://leetcode-cn.com/problems/longest-common-subsequence| |
66 |
| -|72. 编辑距离|1|https://leetcode-cn.com/problems/edit-distance| |
67 |
| -|剑指 Offer 54. 二叉搜索树的第k大节点|1|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof| |
68 |
| -|334. 递增的三元子序列|1|https://leetcode-cn.com/problems/increasing-triplet-subsequence| |
| 79 | +|142. 环形链表 II|1|https://leetcode-cn.com/problems/linked-list-cycle-ii| |
| 80 | +|169. 多数元素|1|https://leetcode-cn.com/problems/majority-element| |
| 81 | +|560. 和为K的子数组|1|https://leetcode-cn.com/problems/subarray-sum-equals-k| |
| 82 | +|437. 路径总和 III|1|https://leetcode-cn.com/problems/path-sum-iii| |
| 83 | +|264. 丑数 II|1|https://leetcode-cn.com/problems/ugly-number-ii| |
69 | 84 | |206. 反转链表|1|https://leetcode-cn.com/problems/reverse-linked-list|
|
70 |
| -|143. 重排链表|1|https://leetcode-cn.com/problems/reorder-list| |
71 |
| -|剑指 Offer 55 - II. 平衡二叉树|1|https://leetcode-cn.com/problems/ping-heng-er-cha-shu-lcof| |
| 85 | +|695. 岛屿的最大面积|1|https://leetcode-cn.com/problems/max-area-of-island| |
| 86 | +|238. 除自身以外数组的乘积|1|https://leetcode-cn.com/problems/product-of-array-except-self| |
| 87 | +|剑指 Offer 36. 二叉搜索树与双向链表|1|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof| |
72 | 88 | |63. 不同路径 II|1|https://leetcode-cn.com/problems/unique-paths-ii|
|
73 |
| -|142. 环形链表 II|1|https://leetcode-cn.com/problems/linked-list-cycle-ii| |
| 89 | +|62. 不同路径|1|https://leetcode-cn.com/problems/unique-paths| |
74 | 90 | |50. Pow(x, n)|1|https://leetcode-cn.com/problems/powx-n|
|
75 |
| -|25. K 个一组翻转链表|1|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| |
76 |
| -|636. 函数的独占时间|1|https://leetcode-cn.com/problems/exclusive-time-of-functions| |
77 |
| -|695. 岛屿的最大面积|1|https://leetcode-cn.com/problems/max-area-of-island| |
78 |
| -|124. 二叉树中的最大路径和|1|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| |
| 91 | +|2. 两数相加|1|https://leetcode-cn.com/problems/add-two-numbers| |
| 92 | +|122. 买卖股票的最佳时机 II|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| |
| 93 | +|179. 最大数|1|https://leetcode-cn.com/problems/largest-number| |
| 94 | +|807. 保持城市天际线|1|https://leetcode-cn.com/problems/max-increase-to-keep-city-skyline| |
79 | 95 | |123. 买卖股票的最佳时机 III|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii|
|
80 |
| -|440. 字典序的第K小数字|1|https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order| |
| 96 | +|445. 两数相加 II|1|https://leetcode-cn.com/problems/add-two-numbers-ii| |
| 97 | +|315. 计算右侧小于当前元素的个数|1|https://leetcode-cn.com/problems/count-of-smaller-numbers-after-self| |
| 98 | +|814. 二叉树剪枝|1|https://leetcode-cn.com/problems/binary-tree-pruning| |
| 99 | +|143. 重排链表|1|https://leetcode-cn.com/problems/reorder-list| |
| 100 | +|20. 有效的括号|1|https://leetcode-cn.com/problems/valid-parentheses| |
| 101 | +|376. 摆动序列|1|https://leetcode-cn.com/problems/wiggle-subsequence| |
0 commit comments