From be6eb97fe5f15b8cd3070649975ae4e560044e4c Mon Sep 17 00:00:00 2001 From: afatcoder Date: Wed, 7 Apr 2021 12:25:58 +0800 Subject: [PATCH] =?UTF-8?q?update=E5=AD=97=E8=8A=82=E8=B7=B3=E5=8A=A8?= =?UTF-8?q?=E8=87=B3=E7=89=9B=E5=AE=A22021.4.6=E6=97=A5=E7=9A=84=E9=9D=A2?= =?UTF-8?q?=E7=BB=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 ++- bytedance/algorithm.md | 139 +++++++------ bytedance/backend.md | 459 +++++++++++++++++++++++------------------ bytedance/client.md | 238 +++++++++++---------- bytedance/data.md | 57 +++-- bytedance/frontend.md | 136 ++++++------ bytedance/latest.md | 262 ++++++++++++++++------- bytedance/test.md | 144 +++++++------ 8 files changed, 856 insertions(+), 602 deletions(-) diff --git a/README.md b/README.md index 4e00b77..df0f57c 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,18 @@ :warning:若转载文章,需注明本仓库地址 +## 字节跳动(更新至牛客2021.4.6日的面经) +
+按岗位分类 + + [3.1~4.6出现的题目](https://github.com/afatcoder/LeetcodeTop/blob/master/bytedance/latest.md) +- [后端](https://github.com/afatcoder/LeetcodeTop/blob/master/bytedance/backend.md) +- [算法](https://github.com/afatcoder/LeetcodeTop/blob/master/bytedance/algorithm.md) +- [客户端](https://github.com/afatcoder/LeetcodeTop/blob/master/bytedance/client.md) +- [前端](https://github.com/afatcoder/LeetcodeTop/blob/master/bytedance/frontend.md) +- [测试](https://github.com/afatcoder/LeetcodeTop/blob/master/bytedance/test.md) +
+ ## 美团(牛客2020.8.15~牛客2021.3.30号面经)
按岗位分类 @@ -62,17 +74,6 @@ - [数据开发](https://github.com/afatcoder/LeetcodeTop/blob/master/kuaishou/data.md)
-## 字节跳动(更新至牛客2.28日的面经) -
-按岗位分类 - - [2.4~2.28出现的题目](https://github.com/afatcoder/LeetcodeTop/blob/master/bytedance/latest.md) -- [后端](https://github.com/afatcoder/LeetcodeTop/blob/master/bytedance/backend.md) -- [算法](https://github.com/afatcoder/LeetcodeTop/blob/master/bytedance/algorithm.md) -- [客户端](https://github.com/afatcoder/LeetcodeTop/blob/master/bytedance/client.md) -- [前端](https://github.com/afatcoder/LeetcodeTop/blob/master/bytedance/frontend.md) -- [测试](https://github.com/afatcoder/LeetcodeTop/blob/master/bytedance/test.md) -
## 百度(更新至牛客8.7日的面经)
diff --git a/bytedance/algorithm.md b/bytedance/algorithm.md index 73e6b04..f622b2d 100644 --- a/bytedance/algorithm.md +++ b/bytedance/algorithm.md @@ -1,80 +1,101 @@ # 算法 +若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 |题目|出现次数|链接| |-|-|-| +|300. 最长上升子序列|6|https://leetcode-cn.com/problems/longest-increasing-subsequence| +|72. 编辑距离|6|https://leetcode-cn.com/problems/edit-distance| |215. 数组中的第K个最大元素|4|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| +|240. 搜索二维矩阵 II|3|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| +|236. 二叉树的最近公共祖先|3|https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree| +|64. 最小路径和|3|https://leetcode-cn.com/problems/minimum-path-sum| |103. 二叉树的锯齿形层次遍历|3|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| -|300. 最长上升子序列|3|https://leetcode-cn.com/problems/longest-increasing-subsequence| +|200. 岛屿数量|3|https://leetcode-cn.com/problems/number-of-islands| +|33. 搜索旋转排序数组|3|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| +|102. 二叉树的层序遍历|3|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| |105. 从前序与中序遍历序列构造二叉树|2|https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal| -|剑指 Offer 51. 数组中的逆序对|2|https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof| -|236. 二叉树的最近公共祖先|2|https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree| -|200. 岛屿数量|2|https://leetcode-cn.com/problems/number-of-islands| +|88. 合并两个有序数组|2|https://leetcode-cn.com/problems/merge-sorted-array| +|70. 爬楼梯|2|https://leetcode-cn.com/problems/climbing-stairs| +|49. 字母异位词分组|2|https://leetcode-cn.com/problems/group-anagrams| +|85. 最大矩形|2|https://leetcode-cn.com/problems/maximal-rectangle| +|287. 寻找重复数|2|https://leetcode-cn.com/problems/find-the-duplicate-number| +|5. 最长回文子串|2|https://leetcode-cn.com/problems/longest-palindromic-substring| +|110. 平衡二叉树|2|https://leetcode-cn.com/problems/balanced-binary-tree| |46. 全排列|2|https://leetcode-cn.com/problems/permutations| +|剑指 Offer 51. 数组中的逆序对|2|https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof| +|239. 滑动窗口最大值|2|https://leetcode-cn.com/problems/sliding-window-maximum| |121. 买卖股票的最佳时机|2|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| -|49. 字母异位词分组|2|https://leetcode-cn.com/problems/group-anagrams| -|剑指 Offer 29. 顺时针打印矩阵|2|https://leetcode-cn.com/problems/shun-shi-zhen-da-yin-ju-zhen-lcof| -|70. 爬楼梯|2|https://leetcode-cn.com/problems/climbing-stairs| +|15. 三数之和|2|https://leetcode-cn.com/problems/3sum| +|补充题4. 手撕快速排序|2|https://leetcode-cn.com/problems/sort-an-array| +|394. 字符串解码|2|https://leetcode-cn.com/problems/decode-string| +|69. x 的平方根|2|https://leetcode-cn.com/problems/sqrtx| +|572. 另一个树的子树|2|https://leetcode-cn.com/problems/subtree-of-another-tree| |4. 寻找两个正序数组的中位数|2|https://leetcode-cn.com/problems/median-of-two-sorted-arrays| |23. 合并K个排序链表|2|https://leetcode-cn.com/problems/merge-k-sorted-lists| -|85. 最大矩形|2|https://leetcode-cn.com/problems/maximal-rectangle| -|814. 二叉树剪枝|1|https://leetcode-cn.com/problems/binary-tree-pruning| -|48. 旋转图像|1|https://leetcode-cn.com/problems/rotate-image| +|1. 两数之和|2|https://leetcode-cn.com/problems/two-sum| +|剑指 Offer 29. 顺时针打印矩阵|2|https://leetcode-cn.com/problems/shun-shi-zhen-da-yin-ju-zhen-lcof| +|129. 求根到叶子节点数字之和|1|https://leetcode-cn.com/problems/sum-root-to-leaf-numbers| +|剑指 Offer 10- I. 斐波那契数列|1|https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof| +|403. 青蛙过河|1|https://leetcode-cn.com/problems/frog-jump| +|41. 缺失的第一个正数|1|https://leetcode-cn.com/problems/first-missing-positive| |96. 不同的二叉搜索树|1|https://leetcode-cn.com/problems/unique-binary-search-trees| -|110. 平衡二叉树|1|https://leetcode-cn.com/problems/balanced-binary-tree| -|62. 不同路径|1|https://leetcode-cn.com/problems/unique-paths| -|169. 多数元素|1|https://leetcode-cn.com/problems/majority-element| -|238. 除自身以外数组的乘积|1|https://leetcode-cn.com/problems/product-of-array-except-self| -|128. 最长连续序列|1|https://leetcode-cn.com/problems/longest-consecutive-sequence| -|剑指 Offer 09. 用两个栈实现队列|1|https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof| -|807. 保持城市天际线|1|https://leetcode-cn.com/problems/max-increase-to-keep-city-skyline| -|718. 最长重复子数组|1|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| -|572. 另一个树的子树|1|https://leetcode-cn.com/problems/subtree-of-another-tree| -|102. 二叉树的层序遍历|1|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| -|209. 长度最小的子数组|1|https://leetcode-cn.com/problems/minimum-size-subarray-sum| |面试题 16.03. 交点|1|https://leetcode-cn.com/problems/intersection-lcci| +|297. 二叉树的序列化与反序列化|1|https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree| +|582. 杀死进程|1|https://leetcode-cn.com/problems/kill-process| +|334. 递增的三元子序列|1|https://leetcode-cn.com/problems/increasing-triplet-subsequence| +|440. 字典序的第K小数字|1|https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order| +|718. 最长重复子数组|1|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| +|3. 无重复字符的最长子串|1|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| +|32. 最长有效括号|1|https://leetcode-cn.com/problems/longest-valid-parentheses| +|1143. 最长公共子序列|1|https://leetcode-cn.com/problems/longest-common-subsequence| +|25. K 个一组翻转链表|1|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| +|98. 验证二叉搜索树|1|https://leetcode-cn.com/problems/validate-binary-search-tree| +|407. 接雨水 II|1|https://leetcode-cn.com/problems/trapping-rain-water-ii| +|107. 二叉树的层次遍历 II|1|https://leetcode-cn.com/problems/binary-tree-level-order-traversal-ii| +|871. 最低加油次数|1|https://leetcode-cn.com/problems/minimum-number-of-refueling-stops| |104. 二叉树的最大深度|1|https://leetcode-cn.com/problems/maximum-depth-of-binary-tree| -|2. 两数相加|1|https://leetcode-cn.com/problems/add-two-numbers| -|560. 和为K的子数组|1|https://leetcode-cn.com/problems/subarray-sum-equals-k| -|287. 寻找重复数|1|https://leetcode-cn.com/problems/find-the-duplicate-number| -|239. 滑动窗口最大值|1|https://leetcode-cn.com/problems/sliding-window-maximum| -|33. 搜索旋转排序数组|1|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| +|632. 最小区间|1|https://leetcode-cn.com/problems/smallest-range-covering-elements-from-k-lists| +|1505. 最多 K 次交换相邻数位后得到的最小整数|1|https://leetcode-cn.com/problems/minimum-possible-integer-after-at-most-k-adjacent-swaps-on-digits| +|227. 基本计算器 II|1|https://leetcode-cn.com/problems/basic-calculator-ii| +|221. 最大正方形|1|https://leetcode-cn.com/problems/maximal-square| +|726. 原子的数量|1|https://leetcode-cn.com/problems/number-of-atoms| +|306. 累加数|1|https://leetcode-cn.com/problems/additive-number| +|415. 字符串相加|1|https://leetcode-cn.com/problems/add-strings| +|160. 相交链表|1|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| +|42. 接雨水|1|https://leetcode-cn.com/problems/trapping-rain-water| +|1420. 生成数组|1|https://leetcode-cn.com/problems/build-array-where-you-can-find-the-maximum-exactly-k-comparisons| +|636. 函数的独占时间|1|https://leetcode-cn.com/problems/exclusive-time-of-functions| +|405. 数字转换为十六进制数|1|https://leetcode-cn.com/problems/convert-a-number-to-hexadecimal| +|1363. 形成三的最大倍数|1|https://leetcode-cn.com/problems/largest-multiple-of-three| +|128. 最长连续序列|1|https://leetcode-cn.com/problems/longest-consecutive-sequence| +|48. 旋转图像|1|https://leetcode-cn.com/problems/rotate-image| +|209. 长度最小的子数组|1|https://leetcode-cn.com/problems/minimum-size-subarray-sum| |509. 斐波那契数|1|https://leetcode-cn.com/problems/fibonacci-number| +|剑指 Offer 54. 二叉搜索树的第k大节点|1|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof| +|124. 二叉树中的最大路径和|1|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| +|剑指 Offer 09. 用两个栈实现队列|1|https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof| |255. 验证前序遍历序列二叉搜索树|1|https://leetcode-cn.com/problems/verify-preorder-sequence-in-binary-search-tree| -|179. 最大数|1|https://leetcode-cn.com/problems/largest-number| -|3. 无重复字符的最长子串|1|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| -|240. 搜索二维矩阵 II|1|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| -|5. 最长回文子串|1|https://leetcode-cn.com/problems/longest-palindromic-substring| -|15. 三数之和|1|https://leetcode-cn.com/problems/3sum| -|445. 两数相加 II|1|https://leetcode-cn.com/problems/add-two-numbers-ii| -|437. 路径总和 III|1|https://leetcode-cn.com/problems/path-sum-iii| -|426. 将二叉搜索树转化为排序的双向链表|1|https://leetcode-cn.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list| -|376. 摆动序列|1|https://leetcode-cn.com/problems/wiggle-subsequence| |152. 乘积最大子数组|1|https://leetcode-cn.com/problems/maximum-product-subarray| -|122. 买卖股票的最佳时机 II|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| -|32. 最长有效括号|1|https://leetcode-cn.com/problems/longest-valid-parentheses| -|297. 二叉树的序列化与反序列化|1|https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree| -|20. 有效的括号|1|https://leetcode-cn.com/problems/valid-parentheses| -|315. 计算右侧小于当前元素的个数|1|https://leetcode-cn.com/problems/count-of-smaller-numbers-after-self| -|582. 杀死进程|1|https://leetcode-cn.com/problems/kill-process| -|1. 两数之和|1|https://leetcode-cn.com/problems/two-sum| -|264. 丑数 II|1|https://leetcode-cn.com/problems/ugly-number-ii| |518. 零钱兑换 II|1|https://leetcode-cn.com/problems/coin-change-2| -|1363. 形成三的最大倍数|1|https://leetcode-cn.com/problems/largest-multiple-of-three| -|160. 相交链表|1|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| -|88. 合并两个有序数组|1|https://leetcode-cn.com/problems/merge-sorted-array| -|64. 最小路径和|1|https://leetcode-cn.com/problems/minimum-path-sum| -|1143. 最长公共子序列|1|https://leetcode-cn.com/problems/longest-common-subsequence| -|72. 编辑距离|1|https://leetcode-cn.com/problems/edit-distance| -|剑指 Offer 54. 二叉搜索树的第k大节点|1|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof| -|334. 递增的三元子序列|1|https://leetcode-cn.com/problems/increasing-triplet-subsequence| +|142. 环形链表 II|1|https://leetcode-cn.com/problems/linked-list-cycle-ii| +|169. 多数元素|1|https://leetcode-cn.com/problems/majority-element| +|560. 和为K的子数组|1|https://leetcode-cn.com/problems/subarray-sum-equals-k| +|437. 路径总和 III|1|https://leetcode-cn.com/problems/path-sum-iii| +|264. 丑数 II|1|https://leetcode-cn.com/problems/ugly-number-ii| |206. 反转链表|1|https://leetcode-cn.com/problems/reverse-linked-list| -|143. 重排链表|1|https://leetcode-cn.com/problems/reorder-list| -|剑指 Offer 55 - II. 平衡二叉树|1|https://leetcode-cn.com/problems/ping-heng-er-cha-shu-lcof| +|695. 岛屿的最大面积|1|https://leetcode-cn.com/problems/max-area-of-island| +|238. 除自身以外数组的乘积|1|https://leetcode-cn.com/problems/product-of-array-except-self| +|剑指 Offer 36. 二叉搜索树与双向链表|1|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof| |63. 不同路径 II|1|https://leetcode-cn.com/problems/unique-paths-ii| -|142. 环形链表 II|1|https://leetcode-cn.com/problems/linked-list-cycle-ii| +|62. 不同路径|1|https://leetcode-cn.com/problems/unique-paths| |50. Pow(x, n)|1|https://leetcode-cn.com/problems/powx-n| -|25. K 个一组翻转链表|1|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| -|636. 函数的独占时间|1|https://leetcode-cn.com/problems/exclusive-time-of-functions| -|695. 岛屿的最大面积|1|https://leetcode-cn.com/problems/max-area-of-island| -|124. 二叉树中的最大路径和|1|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| +|2. 两数相加|1|https://leetcode-cn.com/problems/add-two-numbers| +|122. 买卖股票的最佳时机 II|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| +|179. 最大数|1|https://leetcode-cn.com/problems/largest-number| +|807. 保持城市天际线|1|https://leetcode-cn.com/problems/max-increase-to-keep-city-skyline| |123. 买卖股票的最佳时机 III|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii| -|440. 字典序的第K小数字|1|https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order| \ No newline at end of file +|445. 两数相加 II|1|https://leetcode-cn.com/problems/add-two-numbers-ii| +|315. 计算右侧小于当前元素的个数|1|https://leetcode-cn.com/problems/count-of-smaller-numbers-after-self| +|814. 二叉树剪枝|1|https://leetcode-cn.com/problems/binary-tree-pruning| +|143. 重排链表|1|https://leetcode-cn.com/problems/reorder-list| +|20. 有效的括号|1|https://leetcode-cn.com/problems/valid-parentheses| +|376. 摆动序列|1|https://leetcode-cn.com/problems/wiggle-subsequence| \ No newline at end of file diff --git a/bytedance/backend.md b/bytedance/backend.md index 3d56cab..71dd8cc 100644 --- a/bytedance/backend.md +++ b/bytedance/backend.md @@ -1,237 +1,284 @@ # 后端 +若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 |题目|出现次数|链接| |-|-|-| -|3. 无重复字符的最长子串|27|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| -|15. 三数之和|26|https://leetcode-cn.com/problems/3sum| -|25. K 个一组翻转链表|26|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| -|121. 买卖股票的最佳时机|23|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| -|146. LRU缓存机制|22|https://leetcode-cn.com/problems/lru-cache| -|206. 反转链表|20|https://leetcode-cn.com/problems/reverse-linked-list| -|103. 二叉树的锯齿形层次遍历|20|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| -|215. 数组中的第K个最大元素|18|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| -|105. 从前序与中序遍历序列构造二叉树|16|https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal| -|199. 二叉树的右视图|15|https://leetcode-cn.com/problems/binary-tree-right-side-view| -|160. 相交链表|13|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| -|54. 螺旋矩阵|12|https://leetcode-cn.com/problems/spiral-matrix| -|21. 合并两个有序链表|12|https://leetcode-cn.com/problems/merge-two-sorted-lists| +|3. 无重复字符的最长子串|41|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| +|103. 二叉树的锯齿形层次遍历|40|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| +|25. K 个一组翻转链表|38|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| +|206. 反转链表|37|https://leetcode-cn.com/problems/reverse-linked-list| +|215. 数组中的第K个最大元素|33|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| +|146. LRU缓存机制|32|https://leetcode-cn.com/problems/lru-cache| +|15. 三数之和|30|https://leetcode-cn.com/problems/3sum| +|121. 买卖股票的最佳时机|29|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| +|236. 二叉树的最近公共祖先|22|https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree| +|160. 相交链表|21|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| +|42. 接雨水|20|https://leetcode-cn.com/problems/trapping-rain-water| +|199. 二叉树的右视图|19|https://leetcode-cn.com/problems/binary-tree-right-side-view| +|21. 合并两个有序链表|19|https://leetcode-cn.com/problems/merge-two-sorted-lists| +|105. 从前序与中序遍历序列构造二叉树|18|https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal| +|23. 合并K个排序链表|18|https://leetcode-cn.com/problems/merge-k-sorted-lists| +|33. 搜索旋转排序数组|17|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| +|54. 螺旋矩阵|16|https://leetcode-cn.com/problems/spiral-matrix| +|124. 二叉树中的最大路径和|15|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| +|143. 重排链表|15|https://leetcode-cn.com/problems/reorder-list| +|155. 最小栈|14|https://leetcode-cn.com/problems/min-stack| +|69. x 的平方根|14|https://leetcode-cn.com/problems/sqrtx| +|1. 两数之和|14|https://leetcode-cn.com/problems/two-sum| +|31. 下一个排列|13|https://leetcode-cn.com/problems/next-permutation| +|46. 全排列|13|https://leetcode-cn.com/problems/permutations| +|56. 合并区间|12|https://leetcode-cn.com/problems/merge-intervals| +|141. 环形链表|12|https://leetcode-cn.com/problems/linked-list-cycle| |234. 回文链表|12|https://leetcode-cn.com/problems/palindrome-linked-list| -|42. 接雨水|12|https://leetcode-cn.com/problems/trapping-rain-water| -|69. x 的平方根|11|https://leetcode-cn.com/problems/sqrtx| -|33. 搜索旋转排序数组|10|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| -|124. 二叉树中的最大路径和|10|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| -|155. 最小栈|10|https://leetcode-cn.com/problems/min-stack| -|236. 二叉树的最近公共祖先|10|https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree| +|200. 岛屿数量|12|https://leetcode-cn.com/problems/number-of-islands| +|补充题1. 排序奇升偶降链表|12|https://mp.weixin.qq.com/s/377FfqvpY8NwMInhpoDgsw| +|101. 对称二叉树|11|https://leetcode-cn.com/problems/symmetric-tree| +|20. 有效的括号|11|https://leetcode-cn.com/problems/valid-parentheses| +|41. 缺失的第一个正数|11|https://leetcode-cn.com/problems/first-missing-positive| +|92. 反转链表 II|11|https://leetcode-cn.com/problems/reverse-linked-list-ii| |415. 字符串相加|10|https://leetcode-cn.com/problems/add-strings| -|1. 两数之和|10|https://leetcode-cn.com/problems/two-sum| -|23. 合并K个排序链表|9|https://leetcode-cn.com/problems/merge-k-sorted-lists| -|41. 缺失的第一个正数|9|https://leetcode-cn.com/problems/first-missing-positive| -|补充题1. 排序奇升偶降链表|9|https://mp.weixin.qq.com/s/377FfqvpY8NwMInhpoDgsw| -|141. 环形链表|9|https://leetcode-cn.com/problems/linked-list-cycle| -|20. 有效的括号|8|https://leetcode-cn.com/problems/valid-parentheses| +|958. 二叉树的完全性检验|10|https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree| +|122. 买卖股票的最佳时机 II|10|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| +|142. 环形链表 II|10|https://leetcode-cn.com/problems/linked-list-cycle-ii| +|98. 验证二叉搜索树|10|https://leetcode-cn.com/problems/validate-binary-search-tree| +|300. 最长上升子序列|10|https://leetcode-cn.com/problems/longest-increasing-subsequence| +|102. 二叉树的层序遍历|9|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| +|2. 两数相加|9|https://leetcode-cn.com/problems/add-two-numbers| +|162. 寻找峰值|9|https://leetcode-cn.com/problems/find-peak-element| +|148. 排序链表|9|https://leetcode-cn.com/problems/sort-list| +|48. 旋转图像|9|https://leetcode-cn.com/problems/rotate-image| +|39. 组合总和|9|https://leetcode-cn.com/problems/combination-sum| +|76. 最小覆盖子串|9|https://leetcode-cn.com/problems/minimum-window-substring| +|232. 用栈实现队列|9|https://leetcode-cn.com/problems/implement-queue-using-stacks| +|88. 合并两个有序数组|8|https://leetcode-cn.com/problems/merge-sorted-array| +|322. 零钱兑换|8|https://leetcode-cn.com/problems/coin-change| +|32. 最长有效括号|8|https://leetcode-cn.com/problems/longest-valid-parentheses| |24. 两两交换链表中的节点|8|https://leetcode-cn.com/problems/swap-nodes-in-pairs| -|31. 下一个排列|8|https://leetcode-cn.com/problems/next-permutation| -|98. 验证二叉搜索树|8|https://leetcode-cn.com/problems/validate-binary-search-tree| +|470. 用 Rand7() 实现 Rand10()|8|https://leetcode-cn.com/problems/implement-rand10-using-rand7| +|198. 打家劫舍|8|https://leetcode-cn.com/problems/house-robber| +|补充题2. 圆环回原点问题|8|https://mp.weixin.qq.com/s/VnGFEWHeD3nh1n9JSDkVUg| +|53. 最大子序和|7|https://leetcode-cn.com/problems/maximum-subarray| +|518. 零钱兑换 II|7|https://leetcode-cn.com/problems/coin-change-2| +|83. 删除排序链表中的重复元素|7|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list| +|543. 二叉树的直径|7|https://leetcode-cn.com/problems/diameter-of-binary-tree| +|739. 每日温度|7|https://leetcode-cn.com/problems/daily-temperatures| +|5. 最长回文子串|7|https://leetcode-cn.com/problems/longest-palindromic-substring| |79. 单词搜索|7|https://leetcode-cn.com/problems/word-search| -|143. 重排链表|7|https://leetcode-cn.com/problems/reorder-list| -|46. 全排列|7|https://leetcode-cn.com/problems/permutations| -|2. 两数相加|6|https://leetcode-cn.com/problems/add-two-numbers| -|101. 对称二叉树|6|https://leetcode-cn.com/problems/symmetric-tree| -|148. 排序链表|6|https://leetcode-cn.com/problems/sort-list| -|470. 用 Rand7() 实现 Rand10()|6|https://leetcode-cn.com/problems/implement-rand10-using-rand7| -|958. 二叉树的完全性检验|6|https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree| -|92. 反转链表 II|6|https://leetcode-cn.com/problems/reverse-linked-list-ii| -|102. 二叉树的层序遍历|6|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| -|补充题7. 木头切割问题|6|https://mp.weixin.qq.com/s/o-1VJO2TQZjC5ROmV7CReA| -|162. 寻找峰值|6|https://leetcode-cn.com/problems/find-peak-element| +|110. 平衡二叉树|6|https://leetcode-cn.com/problems/balanced-binary-tree| +|22. 括号生成|6|https://leetcode-cn.com/problems/generate-parentheses| +|113. 路径总和 II|6|https://leetcode-cn.com/problems/path-sum-ii| +|138. 复制带随机指针的链表|6|https://leetcode-cn.com/problems/copy-list-with-random-pointer| +|64. 最小路径和|6|https://leetcode-cn.com/problems/minimum-path-sum| +|19. 删除链表的倒数第N个节点|6|https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list| |114. 二叉树展开为链表|6|https://leetcode-cn.com/problems/flatten-binary-tree-to-linked-list| -|56. 合并区间|6|https://leetcode-cn.com/problems/merge-intervals| -|39. 组合总和|6|https://leetcode-cn.com/problems/combination-sum| -|198. 打家劫舍|6|https://leetcode-cn.com/problems/house-robber| -|122. 买卖股票的最佳时机 II|6|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| -|518. 零钱兑换 II|6|https://leetcode-cn.com/problems/coin-change-2| -|53. 最大子序和|5|https://leetcode-cn.com/problems/maximum-subarray| -|113. 路径总和 II|5|https://leetcode-cn.com/problems/path-sum-ii| -|662. 二叉树最大宽度|5|https://leetcode-cn.com/problems/maximum-width-of-binary-tree| -|300. 最长上升子序列|5|https://leetcode-cn.com/problems/longest-increasing-subsequence| -|48. 旋转图像|5|https://leetcode-cn.com/problems/rotate-image| -|88. 合并两个有序数组|5|https://leetcode-cn.com/problems/merge-sorted-array| -|补充题2. 圆环回原点问题|5|https://mp.weixin.qq.com/s/VnGFEWHeD3nh1n9JSDkVUg| -|76. 最小覆盖子串|5|https://leetcode-cn.com/problems/minimum-window-substring| -|543. 二叉树的直径|5|https://leetcode-cn.com/problems/diameter-of-binary-tree| -|110. 平衡二叉树|5|https://leetcode-cn.com/problems/balanced-binary-tree| -|200. 岛屿数量|5|https://leetcode-cn.com/problems/number-of-islands| -|322. 零钱兑换|5|https://leetcode-cn.com/problems/coin-change| -|142. 环形链表 II|5|https://leetcode-cn.com/problems/linked-list-cycle-ii| -|739. 每日温度|5|https://leetcode-cn.com/problems/daily-temperatures| -|232. 用栈实现队列|4|https://leetcode-cn.com/problems/implement-queue-using-stacks| -|83. 删除排序链表中的重复元素|4|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list| -|32. 最长有效括号|4|https://leetcode-cn.com/problems/longest-valid-parentheses| -|670. 最大交换|4|https://leetcode-cn.com/problems/maximum-swap| -|128. 最长连续序列|4|https://leetcode-cn.com/problems/longest-consecutive-sequence| -|240. 搜索二维矩阵 II|4|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| -|287. 寻找重复数|4|https://leetcode-cn.com/problems/find-the-duplicate-number| -|151. 翻转字符串里的单词|4|https://leetcode-cn.com/problems/reverse-words-in-a-string| -|528. 按权重随机选择|4|https://leetcode-cn.com/problems/random-pick-with-weight| +|94. 二叉树的中序遍历|6|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| +|剑指 Offer 22. 链表中倒数第k个节点|6|https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof| +|662. 二叉树最大宽度|6|https://leetcode-cn.com/problems/maximum-width-of-binary-tree| +|240. 搜索二维矩阵 II|6|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| +|440. 字典序的第K小数字|6|https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order| +|78. 子集|6|https://leetcode-cn.com/problems/subsets| +|补充题4. 手撕快速排序|6|https://leetcode-cn.com/problems/sort-an-array| +|补充题7. 木头切割问题|6|https://mp.weixin.qq.com/s/o-1VJO2TQZjC5ROmV7CReA| +|70. 爬楼梯|5|https://leetcode-cn.com/problems/climbing-stairs| +|108. 将有序数组转换为二叉搜索树|5|https://leetcode-cn.com/problems/convert-sorted-array-to-binary-search-tree| +|128. 最长连续序列|5|https://leetcode-cn.com/problems/longest-consecutive-sequence| +|695. 岛屿的最大面积|5|https://leetcode-cn.com/problems/max-area-of-island| +|670. 最大交换|5|https://leetcode-cn.com/problems/maximum-swap| +|224. 基本计算器|5|https://leetcode-cn.com/problems/basic-calculator| +|93. 复原IP地址|5|https://leetcode-cn.com/problems/restore-ip-addresses| +|226. 翻转二叉树|5|https://leetcode-cn.com/problems/invert-binary-tree| +|151. 翻转字符串里的单词|5|https://leetcode-cn.com/problems/reverse-words-in-a-string| +|287. 寻找重复数|5|https://leetcode-cn.com/problems/find-the-duplicate-number| +|862. 和至少为 K 的最短子数组|5|https://leetcode-cn.com/problems/shortest-subarray-with-sum-at-least-k| +|82. 删除排序链表中的重复元素 II|5|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii| +|补充题9. 36进制加法|5|https://mp.weixin.qq.com/s/bgD1Q5lc92mX7RNS1L65qA| +|剑指 Offer 54. 二叉搜索树的第k大节点|4|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof| +|230. 二叉搜索树中第K小的元素|4|https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst| +|221. 最大正方形|4|https://leetcode-cn.com/problems/maximal-square| |560. 和为K的子数组|4|https://leetcode-cn.com/problems/subarray-sum-equals-k| -|64. 最小路径和|3|https://leetcode-cn.com/problems/minimum-path-sum| -|134. 加油站|3|https://leetcode-cn.com/problems/gas-station| -|210. 课程表 II|3|https://leetcode-cn.com/problems/course-schedule-ii| -|70. 爬楼梯|3|https://leetcode-cn.com/problems/climbing-stairs| -|138. 复制带随机指针的链表|3|https://leetcode-cn.com/problems/copy-list-with-random-pointer| -|剑指 Offer 22. 链表中倒数第k个节点|3|https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof| +|剑指 Offer 11. 旋转数组的最小数字|4|https://leetcode-cn.com/problems/xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof| +|8. 字符串转换整数 (atoi)|4|https://leetcode-cn.com/problems/string-to-integer-atoi| +|704. 二分查找|4|https://leetcode-cn.com/problems/binary-search| +|61. 旋转链表|4|https://leetcode-cn.com/problems/rotate-list| +|129. 求根到叶子节点数字之和|4|https://leetcode-cn.com/problems/sum-root-to-leaf-numbers| +|剑指 Offer 36. 二叉搜索树与双向链表|4|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof| +|40. 组合总和 II|4|https://leetcode-cn.com/problems/combination-sum-ii| +|135. 分发糖果|4|https://leetcode-cn.com/problems/candy| +|528. 按权重随机选择|4|https://leetcode-cn.com/problems/random-pick-with-weight| +|11. 盛最多水的容器|4|https://leetcode-cn.com/problems/container-with-most-water| +|补充题3. 求区间最小数乘区间和的最大值|4|https://mp.weixin.qq.com/s/ABNN4lJpvttulwWaUTgYZQ| +|977. 有序数组的平方|3|https://leetcode-cn.com/problems/squares-of-a-sorted-array| |1143. 最长公共子序列|3|https://leetcode-cn.com/problems/longest-common-subsequence| -|221. 最大正方形|3|https://leetcode-cn.com/problems/maximal-square| -|129. 求根到叶子节点数字之和|3|https://leetcode-cn.com/problems/sum-root-to-leaf-numbers| -|695. 岛屿的最大面积|3|https://leetcode-cn.com/problems/max-area-of-island| -|704. 二分查找|3|https://leetcode-cn.com/problems/binary-search| -|226. 翻转二叉树|3|https://leetcode-cn.com/problems/invert-binary-tree| -|94. 二叉树的中序遍历|3|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| +|297. 二叉树的序列化与反序列化|3|https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree| +|328. 奇偶链表|3|https://leetcode-cn.com/problems/odd-even-linked-list| +|460. LFU缓存|3|https://leetcode-cn.com/problems/lfu-cache| +|剑指 Offer 51. 数组中的逆序对|3|https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof| +|188. 买卖股票的最佳时机 IV|3|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iv| +|210. 课程表 II|3|https://leetcode-cn.com/problems/course-schedule-ii| +|1047. 删除字符串中的所有相邻重复项|3|https://leetcode-cn.com/problems/remove-all-adjacent-duplicates-in-string| +|402. 移掉K位数字|3|https://leetcode-cn.com/problems/remove-k-digits| +|169. 多数元素|3|https://leetcode-cn.com/problems/majority-element| |104. 二叉树的最大深度|3|https://leetcode-cn.com/problems/maximum-depth-of-binary-tree| -|108. 将有序数组转换为二叉搜索树|3|https://leetcode-cn.com/problems/convert-sorted-array-to-binary-search-tree| -|440. 字典序的第K小数字|2|https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order| -|402. 移掉K位数字|2|https://leetcode-cn.com/problems/remove-k-digits| -|99. 恢复二叉搜索树|2|https://leetcode-cn.com/problems/recover-binary-search-tree| -|224. 基本计算器|2|https://leetcode-cn.com/problems/basic-calculator| -|503. 下一个更大元素 II|2|https://leetcode-cn.com/problems/next-greater-element-ii| -|93. 复原IP地址|2|https://leetcode-cn.com/problems/restore-ip-addresses| -|71. 简化路径|2|https://leetcode-cn.com/problems/simplify-path| -|61. 旋转链表|2|https://leetcode-cn.com/problems/rotate-list| -|11. 盛最多水的容器|2|https://leetcode-cn.com/problems/container-with-most-water| -|208. 实现 Trie (前缀树)|2|https://leetcode-cn.com/problems/implement-trie-prefix-tree| -|862. 和至少为 K 的最短子数组|2|https://leetcode-cn.com/problems/shortest-subarray-with-sum-at-least-k| -|147. 对链表进行插入排序|2|https://leetcode-cn.com/problems/insertion-sort-list| +|4. 寻找两个正序数组的中位数|3|https://leetcode-cn.com/problems/median-of-two-sorted-arrays| +|209. 长度最小的子数组|3|https://leetcode-cn.com/problems/minimum-size-subarray-sum| +|134. 加油站|3|https://leetcode-cn.com/problems/gas-station| +|91. 解码方法|3|https://leetcode-cn.com/problems/decode-ways| +|329. 矩阵中的最长递增路径|3|https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix| +|59. 螺旋矩阵 II|3|https://leetcode-cn.com/problems/spiral-matrix-ii| +|718. 最长重复子数组|3|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| +|153. 寻找旋转排序数组中的最小值|3|https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array| +|剑指 Offer 46. 把数字翻译成字符串|3|https://leetcode-cn.com/problems/ba-shu-zi-fan-yi-cheng-zi-fu-chuan-lcof| +|1254. 统计封闭岛屿的数目|2|https://leetcode-cn.com/problems/number-of-closed-islands| |剑指 Offer 61. 扑克牌中的顺子|2|https://leetcode-cn.com/problems/bu-ke-pai-zhong-de-shun-zi-lcof| -|22. 括号生成|2|https://leetcode-cn.com/problems/generate-parentheses| -|668. 乘法表中第k小的数|2|https://leetcode-cn.com/problems/kth-smallest-number-in-multiplication-table| -|剑指 Offer 54. 二叉搜索树的第k大节点|2|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof| -|5. 最长回文子串|2|https://leetcode-cn.com/problems/longest-palindromic-substring| -|135. 分发糖果|2|https://leetcode-cn.com/problems/candy| -|722. 删除注释|2|https://leetcode-cn.com/problems/remove-comments| -|剑指 Offer 36. 二叉搜索树与双向链表|2|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof| -|188. 买卖股票的最佳时机 IV|2|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iv| -|50. Pow(x, n)|2|https://leetcode-cn.com/problems/powx-n| +|剑指 Offer 09. 用两个栈实现队列|2|https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof| +|139. 单词拆分|2|https://leetcode-cn.com/problems/word-break| +|112. 路径总和|2|https://leetcode-cn.com/problems/path-sum| +|503. 下一个更大元素 II|2|https://leetcode-cn.com/problems/next-greater-element-ii| +|283. 移动零|2|https://leetcode-cn.com/problems/move-zeroes| +|347. 前 K 个高频元素|2|https://leetcode-cn.com/problems/top-k-frequent-elements| |剑指 Offer 10- II. 青蛙跳台阶问题|2|https://leetcode-cn.com/problems/qing-wa-tiao-tai-jie-wen-ti-lcof| -|340. 至多包含 K 个不同字符的最长子串|2|https://leetcode-cn.com/problems/longest-substring-with-at-most-k-distinct-characters| -|59. 螺旋矩阵 II|2|https://leetcode-cn.com/problems/spiral-matrix-ii| -|剑指 Offer 46. 把数字翻译成字符串|2|https://leetcode-cn.com/problems/ba-shu-zi-fan-yi-cheng-zi-fu-chuan-lcof| -|4. 寻找两个正序数组的中位数|2|https://leetcode-cn.com/problems/median-of-two-sorted-arrays| +|剑指 Offer 45. 把数组排成最小的数|2|https://leetcode-cn.com/problems/ba-shu-zu-pai-cheng-zui-xiao-de-shu-lcof| +|264. 丑数 II|2|https://leetcode-cn.com/problems/ugly-number-ii| +|421. 数组中两个数的最大异或值|2|https://leetcode-cn.com/problems/maximum-xor-of-two-numbers-in-an-array| +|62. 不同路径|2|https://leetcode-cn.com/problems/unique-paths| +|99. 恢复二叉搜索树|2|https://leetcode-cn.com/problems/recover-binary-search-tree| |125. 验证回文串|2|https://leetcode-cn.com/problems/valid-palindrome| -|补充题3. 求区间最小数乘区间和的最大值|2|https://mp.weixin.qq.com/s/ABNN4lJpvttulwWaUTgYZQ| -|112. 路径总和|2|https://leetcode-cn.com/problems/path-sum| -|72. 编辑距离|2|https://leetcode-cn.com/problems/edit-distance| -|剑指 Offer 51. 数组中的逆序对|2|https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof| +|523. 连续的子数组和|2|https://leetcode-cn.com/problems/continuous-subarray-sum| +|剑指 Offer 48. 最长不含重复字符的子字符串|2|https://leetcode-cn.com/problems/zui-chang-bu-han-zhong-fu-zi-fu-de-zi-zi-fu-chuan-lcof| +|剑指 Offer 04. 二维数组中的查找|2|https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof| |面试题 03.05. 栈排序|2|https://leetcode-cn.com/problems/sort-of-stacks-lcci| -|169. 多数元素|2|https://leetcode-cn.com/problems/majority-element| -|82. 删除排序链表中的重复元素 II|2|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii| |394. 字符串解码|2|https://leetcode-cn.com/problems/decode-string| -|460. LFU缓存|2|https://leetcode-cn.com/problems/lfu-cache| -|264. 丑数 II|2|https://leetcode-cn.com/problems/ugly-number-ii| -|404. 左叶子之和|2|https://leetcode-cn.com/problems/sum-of-left-leaves| -|剑指 Offer 42. 连续子数组的最大和|2|https://leetcode-cn.com/problems/lian-xu-zi-shu-zu-de-zui-da-he-lcof| -|328. 奇偶链表|2|https://leetcode-cn.com/problems/odd-even-linked-list| -|1095. 山脉数组中查找目标值|2|https://leetcode-cn.com/problems/find-in-mountain-array| -|19. 删除链表的倒数第N个节点|2|https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list| -|153. 寻找旋转排序数组中的最小值|2|https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array| -|283. 移动零|2|https://leetcode-cn.com/problems/move-zeroes| -|45. 跳跃游戏 II|2|https://leetcode-cn.com/problems/jump-game-ii| -|86. 分隔链表|2|https://leetcode-cn.com/problems/partition-list| -|456. 132模式|2|https://leetcode-cn.com/problems/132-pattern| -|977. 有序数组的平方|2|https://leetcode-cn.com/problems/squares-of-a-sorted-array| -|139. 单词拆分|2|https://leetcode-cn.com/problems/word-break| +|208. 实现 Trie (前缀树)|2|https://leetcode-cn.com/problems/implement-trie-prefix-tree| |剑指 Offer 19. 正则表达式匹配|2|https://leetcode-cn.com/problems/zheng-ze-biao-da-shi-pi-pei-lcof| +|145. 二叉树的后序遍历|2|https://leetcode-cn.com/problems/binary-tree-postorder-traversal| |398. 随机数索引|2|https://leetcode-cn.com/problems/random-pick-index| -|8. 字符串转换整数 (atoi)|2|https://leetcode-cn.com/problems/string-to-integer-atoi| +|45. 跳跃游戏 II|2|https://leetcode-cn.com/problems/jump-game-ii| +|50. Pow(x, n)|2|https://leetcode-cn.com/problems/powx-n| +|71. 简化路径|2|https://leetcode-cn.com/problems/simplify-path| +|416. 分割等和子集|2|https://leetcode-cn.com/problems/partition-equal-subset-sum| +|456. 132模式|2|https://leetcode-cn.com/problems/132-pattern| +|340. 至多包含 K 个不同字符的最长子串|2|https://leetcode-cn.com/problems/longest-substring-with-at-most-k-distinct-characters| +|668. 乘法表中第k小的数|2|https://leetcode-cn.com/problems/kth-smallest-number-in-multiplication-table| +|86. 分隔链表|2|https://leetcode-cn.com/problems/partition-list| +|120. 三角形最小路径和|2|https://leetcode-cn.com/problems/triangle| +|147. 对链表进行插入排序|2|https://leetcode-cn.com/problems/insertion-sort-list| |785. 判断二分图|2|https://leetcode-cn.com/problems/is-graph-bipartite| -|449. 序列化和反序列化二叉搜索树|1|https://leetcode-cn.com/problems/serialize-and-deserialize-bst| -|136. 只出现一次的数字|1|https://leetcode-cn.com/problems/single-number| -|40. 组合总和 II|1|https://leetcode-cn.com/problems/combination-sum-ii| -|剑指 Offer 33. 二叉搜索树的后序遍历序列|1|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof| -|97. 交错字符串|1|https://leetcode-cn.com/problems/interleaving-string| -|剑指 Offer 05. 替换空格|1|https://leetcode-cn.com/problems/ti-huan-kong-ge-lcof| -|18. 四数之和|1|https://leetcode-cn.com/problems/4sum| -|718. 最长重复子数组|1|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| -|145. 二叉树的后序遍历|1|https://leetcode-cn.com/problems/binary-tree-postorder-traversal| -|468. 验证IP地址|1|https://leetcode-cn.com/problems/validate-ip-address| -|1669. 合并两个链表|1|https://leetcode-cn.com/problems/merge-in-between-linked-lists| -|260. 只出现一次的数字 III|1|https://leetcode-cn.com/problems/single-number-iii| -|剑指 Offer 18. 删除链表的节点|1|https://leetcode-cn.com/problems/shan-chu-lian-biao-de-jie-dian-lcof| -|107. 二叉树的层次遍历 II|1|https://leetcode-cn.com/problems/binary-tree-level-order-traversal-ii| -|329. 矩阵中的最长递增路径|1|https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix| -|10. 正则表达式匹配|1|https://leetcode-cn.com/problems/regular-expression-matching| -|523. 连续的子数组和|1|https://leetcode-cn.com/problems/continuous-subarray-sum| -|974. 和可被 K 整除的子数组|1|https://leetcode-cn.com/problems/subarray-sums-divisible-by-k| -|912. 排序数组|1|https://leetcode-cn.com/problems/sort-an-array| -|剑指 Offer 24. 反转链表|1|https://leetcode-cn.com/problems/fan-zhuan-lian-biao-lcof| -|剑指 Offer 45. 把数组排成最小的数|1|https://leetcode-cn.com/problems/ba-shu-zu-pai-cheng-zui-xiao-de-shu-lcof| -|144. 二叉树的前序遍历|1|https://leetcode-cn.com/problems/binary-tree-preorder-traversal| -|349. 两个数组的交集|1|https://leetcode-cn.com/problems/intersection-of-two-arrays| -|84. 柱状图中最大的矩形|1|https://leetcode-cn.com/problems/largest-rectangle-in-histogram| -|410. 分割数组的最大值|1|https://leetcode-cn.com/problems/split-array-largest-sum| -|922. 按奇偶排序数组 II|1|https://leetcode-cn.com/problems/sort-array-by-parity-ii| -|230. 二叉搜索树中第K小的元素|1|https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst| -|1139. 最大的以 1 为边界的正方形|1|https://leetcode-cn.com/problems/largest-1-bordered-square| -|剑指 Offer 11. 旋转数组的最小数字|1|https://leetcode-cn.com/problems/xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof| -|209. 长度最小的子数组|1|https://leetcode-cn.com/problems/minimum-size-subarray-sum| -|321. 拼接最大数|1|https://leetcode-cn.com/problems/create-maximum-number| -|421. 数组中两个数的最大异或值|1|https://leetcode-cn.com/problems/maximum-xor-of-two-numbers-in-an-array| -|202. 快乐数|1|https://leetcode-cn.com/problems/happy-number| -|剑指 Offer 59 - II. 队列的最大值|1|https://leetcode-cn.com/problems/dui-lie-de-zui-da-zhi-lcof| -|951. 翻转等价二叉树|1|https://leetcode-cn.com/problems/flip-equivalent-binary-trees| -|剑指 Offer 58 - II. 左旋转字符串|1|https://leetcode-cn.com/problems/zuo-xuan-zhuan-zi-fu-chuan-lcof| -|62. 不同路径|1|https://leetcode-cn.com/problems/unique-paths| -|889. 根据前序和后序遍历构造二叉树|1|https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal| +|239. 滑动窗口最大值|2|https://leetcode-cn.com/problems/sliding-window-maximum| +|722. 删除注释|2|https://leetcode-cn.com/problems/remove-comments| +|468. 验证IP地址|2|https://leetcode-cn.com/problems/validate-ip-address| +|1095. 山脉数组中查找目标值|2|https://leetcode-cn.com/problems/find-in-mountain-array| +|72. 编辑距离|2|https://leetcode-cn.com/problems/edit-distance| +|404. 左叶子之和|2|https://leetcode-cn.com/problems/sum-of-left-leaves| +|10. 正则表达式匹配|2|https://leetcode-cn.com/problems/regular-expression-matching| +|84. 柱状图中最大的矩形|2|https://leetcode-cn.com/problems/largest-rectangle-in-histogram| +|974. 和可被 K 整除的子数组|2|https://leetcode-cn.com/problems/subarray-sums-divisible-by-k| +|18. 四数之和|2|https://leetcode-cn.com/problems/4sum| +|剑指 Offer 27. 二叉树的镜像|2|https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof| +|75. 颜色分类|2|https://leetcode-cn.com/problems/sort-colors| +|191. 位1的个数|2|https://leetcode-cn.com/problems/number-of-1-bits| +|225. 用队列实现栈|2|https://leetcode-cn.com/problems/implement-stack-using-queues| +|647. 回文子串|2|https://leetcode-cn.com/problems/palindromic-substrings| +|34. 在排序数组中查找元素的第一个和最后一个位置|2|https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array| +|165. 比较版本号|2|https://leetcode-cn.com/problems/compare-version-numbers| +|补充题10. 36进制减法|2|| +|补充题5. 手撕归并排序|2|https://leetcode-cn.com/problems/sort-an-array| +|556. 下一个更大元素 III|2|https://leetcode-cn.com/problems/next-greater-element-iii| +|227. 基本计算器 II|2|https://leetcode-cn.com/problems/basic-calculator-ii| +|剑指 Offer 03. 数组中重复的数字|2|https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof| +|106. 从中序与后序遍历序列构造二叉树|2|https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal| +|剑指 Offer 52. 两个链表的第一个公共节点|1|https://leetcode-cn.com/problems/liang-ge-lian-biao-de-di-yi-ge-gong-gong-jie-dian-lcof| +|111. 二叉树的最小深度|1|https://leetcode-cn.com/problems/minimum-depth-of-binary-tree| |994. 腐烂的橘子|1|https://leetcode-cn.com/problems/rotting-oranges| -|14. 最长公共前缀|1|https://leetcode-cn.com/problems/longest-common-prefix| +|344. 反转字符串|1|https://leetcode-cn.com/problems/reverse-string| +|1299. 将每个元素替换为右侧最大元素|1|https://leetcode-cn.com/problems/replace-elements-with-greatest-element-on-right-side| +|67. 二进制求和|1|https://leetcode-cn.com/problems/add-binary| |515. 在每个树行中找最大值|1|https://leetcode-cn.com/problems/find-largest-value-in-each-tree-row| -|895. 最大频率栈|1|https://leetcode-cn.com/problems/maximum-frequency-stack| |1147. 段式回文|1|https://leetcode-cn.com/problems/longest-chunked-palindrome-decomposition| -|120. 三角形最小路径和|1|https://leetcode-cn.com/problems/triangle| -|1254. 统计封闭岛屿的数目|1|https://leetcode-cn.com/problems/number-of-closed-islands| -|剑指 Offer 67. 把字符串转换成整数|1|https://leetcode-cn.com/problems/ba-zi-fu-chuan-zhuan-huan-cheng-zheng-shu-lcof| -|344. 反转字符串|1|https://leetcode-cn.com/problems/reverse-string| -|173. 二叉搜索树迭代器|1|https://leetcode-cn.com/problems/binary-search-tree-iterator| +|876. 链表的中间结点|1|https://leetcode-cn.com/problems/middle-of-the-linked-list| |100. 相同的树|1|https://leetcode-cn.com/problems/same-tree| -|91. 解码方法|1|https://leetcode-cn.com/problems/decode-ways| -|701. 二叉搜索树中的插入操作|1|https://leetcode-cn.com/problems/insert-into-a-binary-search-tree| -|剑指 Offer 52. 两个链表的第一个公共节点|1|https://leetcode-cn.com/problems/liang-ge-lian-biao-de-di-yi-ge-gong-gong-jie-dian-lcof| -|694. 不同岛屿的数量|1|https://leetcode-cn.com/problems/number-of-distinct-islands| -|剑指 Offer 25. 合并两个排序的链表|1|https://leetcode-cn.com/problems/he-bing-liang-ge-pai-xu-de-lian-biao-lcof| -|277. 搜寻名人|1|https://leetcode-cn.com/problems/find-the-celebrity| -|525. 连续数组|1|https://leetcode-cn.com/problems/contiguous-array| -|807. 保持城市天际线|1|https://leetcode-cn.com/problems/max-increase-to-keep-city-skyline| -|111. 二叉树的最小深度|1|https://leetcode-cn.com/problems/minimum-depth-of-binary-tree| -|43. 字符串相乘|1|https://leetcode-cn.com/problems/multiply-strings| -|347. 前 K 个高频元素|1|https://leetcode-cn.com/problems/top-k-frequent-elements| -|152. 乘积最大子数组|1|https://leetcode-cn.com/problems/maximum-product-subarray| +|842. 将数组拆分成斐波那契序列|1|https://leetcode-cn.com/problems/split-array-into-fibonacci-sequence| +|剑指 Offer 33. 二叉搜索树的后序遍历序列|1|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof| +|166. 分数到小数|1|https://leetcode-cn.com/problems/fraction-to-recurring-decimal| |剑指 Offer 38. 字符串的排列|1|https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcof| -|204. 计数质数|1|https://leetcode-cn.com/problems/count-primes| -|78. 子集|1|https://leetcode-cn.com/problems/subsets| -|37. 解数独|1|https://leetcode-cn.com/problems/sudoku-solver| -|67. 二进制求和|1|https://leetcode-cn.com/problems/add-binary| -|297. 二叉树的序列化与反序列化|1|https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree| -|416. 分割等和子集|1|https://leetcode-cn.com/problems/partition-equal-subset-sum| -|154. 寻找旋转排序数组中的最小值 II|1|https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array-ii| +|剑指 Offer 24. 反转链表|1|https://leetcode-cn.com/problems/fan-zhuan-lian-biao-lcof| |剑指 Offer 53 - II. 0~n-1中缺失的数字|1|https://leetcode-cn.com/problems/que-shi-de-shu-zi-lcof| -|459. 重复的子字符串|1|https://leetcode-cn.com/problems/repeated-substring-pattern| -|剑指 Offer 09. 用两个栈实现队列|1|https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof| -|剑指 Offer 48. 最长不含重复字符的子字符串|1|https://leetcode-cn.com/problems/zui-chang-bu-han-zhong-fu-zi-fu-de-zi-zi-fu-chuan-lcof| -|1363. 形成三的最大倍数|1|https://leetcode-cn.com/problems/largest-multiple-of-three| -|842. 将数组拆分成斐波那契序列|1|https://leetcode-cn.com/problems/split-array-into-fibonacci-sequence| -|239. 滑动窗口最大值|1|https://leetcode-cn.com/problems/sliding-window-maximum| +|701. 二叉搜索树中的插入操作|1|https://leetcode-cn.com/problems/insert-into-a-binary-search-tree| +|349. 两个数组的交集|1|https://leetcode-cn.com/problems/intersection-of-two-arrays| +|1156. 单字符重复子串的最大长度|1|https://leetcode-cn.com/problems/swap-for-longest-repeated-character-substring| +|449. 序列化和反序列化二叉搜索树|1|https://leetcode-cn.com/problems/serialize-and-deserialize-bst| |剑指 Offer 21. 调整数组顺序使奇数位于偶数前面|1|https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof| -|补充题4. 手撕快速排序|1|| -|1299. 将每个元素替换为右侧最大元素|1|https://leetcode-cn.com/problems/replace-elements-with-greatest-element-on-right-side| -|剑指 Offer 04. 二维数组中的查找|1|https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof| -|166. 分数到小数|1|https://leetcode-cn.com/problems/fraction-to-recurring-decimal| -|295. 数据流的中位数|1|https://leetcode-cn.com/problems/find-median-from-data-stream| -|279. 完全平方数|1|https://leetcode-cn.com/problems/perfect-squares| |面试题 08.12. 八皇后|1|https://leetcode-cn.com/problems/eight-queens-lcci| -|剑指 Offer 27. 二叉树的镜像|1|https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof| -|1047. 删除字符串中的所有相邻重复项|1|https://leetcode-cn.com/problems/remove-all-adjacent-duplicates-in-string| +|37. 解数独|1|https://leetcode-cn.com/problems/sudoku-solver| +|410. 分割数组的最大值|1|https://leetcode-cn.com/problems/split-array-largest-sum| +|694. 不同岛屿的数量|1|https://leetcode-cn.com/problems/number-of-distinct-islands| +|剑指 Offer 18. 删除链表的节点|1|https://leetcode-cn.com/problems/shan-chu-lian-biao-de-jie-dian-lcof| +|912. 排序数组|1|https://leetcode-cn.com/problems/sort-an-array| +|173. 二叉搜索树迭代器|1|https://leetcode-cn.com/problems/binary-search-tree-iterator| +|1139. 最大的以 1 为边界的正方形|1|https://leetcode-cn.com/problems/largest-1-bordered-square| +|剑指 Offer 25. 合并两个排序的链表|1|https://leetcode-cn.com/problems/he-bing-liang-ge-pai-xu-de-lian-biao-lcof| +|895. 最大频率栈|1|https://leetcode-cn.com/problems/maximum-frequency-stack| |325. 和等于 k 的最长子数组长度|1|https://leetcode-cn.com/problems/maximum-size-subarray-sum-equals-k| -|876. 链表的中间结点|1|https://leetcode-cn.com/problems/middle-of-the-linked-list| +|1363. 形成三的最大倍数|1|https://leetcode-cn.com/problems/largest-multiple-of-three| +|951. 翻转等价二叉树|1|https://leetcode-cn.com/problems/flip-equivalent-binary-trees| +|107. 二叉树的层次遍历 II|1|https://leetcode-cn.com/problems/binary-tree-level-order-traversal-ii| +|152. 乘积最大子数组|1|https://leetcode-cn.com/problems/maximum-product-subarray| |637. 二叉树的层平均值|1|https://leetcode-cn.com/problems/average-of-levels-in-binary-tree| +|277. 搜寻名人|1|https://leetcode-cn.com/problems/find-the-celebrity| |123. 买卖股票的最佳时机 III|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii| -|1156. 单字符重复子串的最大长度|1|https://leetcode-cn.com/problems/swap-for-longest-repeated-character-substring| +|154. 寻找旋转排序数组中的最小值 II|1|https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array-ii| +|321. 拼接最大数|1|https://leetcode-cn.com/problems/create-maximum-number| +|525. 连续数组|1|https://leetcode-cn.com/problems/contiguous-array| +|剑指 Offer 58 - II. 左旋转字符串|1|https://leetcode-cn.com/problems/zuo-xuan-zhuan-zi-fu-chuan-lcof| +|97. 交错字符串|1|https://leetcode-cn.com/problems/interleaving-string| +|295. 数据流的中位数|1|https://leetcode-cn.com/problems/find-median-from-data-stream| +|204. 计数质数|1|https://leetcode-cn.com/problems/count-primes| +|144. 二叉树的前序遍历|1|https://leetcode-cn.com/problems/binary-tree-preorder-traversal| +|202. 快乐数|1|https://leetcode-cn.com/problems/happy-number| +|1669. 合并两个链表|1|https://leetcode-cn.com/problems/merge-in-between-linked-lists| +|807. 保持城市天际线|1|https://leetcode-cn.com/problems/max-increase-to-keep-city-skyline| +|889. 根据前序和后序遍历构造二叉树|1|https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal| +|剑指 Offer 05. 替换空格|1|https://leetcode-cn.com/problems/ti-huan-kong-ge-lcof| +|279. 完全平方数|1|https://leetcode-cn.com/problems/perfect-squares| |17. 电话号码的字母组合|1|https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number| -|剑指 Offer 68 - II. 二叉树的最近公共祖先|1|https://leetcode-cn.com/problems/er-cha-shu-de-zui-jin-gong-gong-zu-xian-lcof| \ No newline at end of file +|459. 重复的子字符串|1|https://leetcode-cn.com/problems/repeated-substring-pattern| +|剑指 Offer 59 - II. 队列的最大值|1|https://leetcode-cn.com/problems/dui-lie-de-zui-da-zhi-lcof| +|260. 只出现一次的数字 III|1|https://leetcode-cn.com/problems/single-number-iii| +|136. 只出现一次的数字|1|https://leetcode-cn.com/problems/single-number| +|43. 字符串相乘|1|https://leetcode-cn.com/problems/multiply-strings| +|14. 最长公共前缀|1|https://leetcode-cn.com/problems/longest-common-prefix| +|922. 按奇偶排序数组 II|1|https://leetcode-cn.com/problems/sort-array-by-parity-ii| +|1438. 绝对差不超过限制的最长连续子数组|1|https://leetcode-cn.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit| +|60. 第k个排列|1|https://leetcode-cn.com/problems/permutation-sequence| +|剑指 Offer 62. 圆圈中最后剩下的数字|1|https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof| +|836. 矩形重叠|1|https://leetcode-cn.com/problems/rectangle-overlap| +|1172. 餐盘栈|1|https://leetcode-cn.com/problems/dinner-plate-stacks| +|547. 省份数量(原朋友圈)|1|https://leetcode-cn.com/problems/number-of-provinces| +|面试题 17.24. 最大子矩阵|1|https://leetcode-cn.com/problems/max-submatrix-lcci| +|补充题6. 手撕堆排序|1|https://leetcode-cn.com/problems/sort-an-array| +|1302. 层数最深叶子节点的和|1|https://leetcode-cn.com/problems/deepest-leaves-sum| +|189. 旋转数组|1|https://leetcode-cn.com/problems/rotate-array| +|74. 搜索二维矩阵|1|https://leetcode-cn.com/problems/search-a-2d-matrix| +|448. 找到所有数组中消失的数字|1|https://leetcode-cn.com/problems/find-all-numbers-disappeared-in-an-array| +|127. 单词接龙|1|https://leetcode-cn.com/problems/word-ladder| +|剑指 Offer 55 - II. 平衡二叉树|1|https://leetcode-cn.com/problems/ping-heng-er-cha-shu-lcof| +|剑指 Offer 55 - I. 二叉树的深度|1|https://leetcode-cn.com/problems/er-cha-shu-de-shen-du-lcof| +|补充题14. 阿拉伯数字转中文数字|1|| +|面试题 08.05. 递归乘法|1|https://leetcode-cn.com/problems/recursive-mulitply-lcci| +|179. 最大数|1|https://leetcode-cn.com/problems/largest-number| +|1107. 每日新用户统计|1|https://leetcode-cn.com/problems/new-users-daily-count| +|887. 鸡蛋掉落|1|https://leetcode-cn.com/problems/super-egg-drop| +|剑指 Offer 10- I. 斐波那契数列|1|https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof| +|63. 不同路径 II|1|https://leetcode-cn.com/problems/unique-paths-ii| +|397. 整数替换|1|https://leetcode-cn.com/problems/integer-replacement| +|564. 寻找最近的回文数|1|https://leetcode-cn.com/problems/find-the-closest-palindrome| +|765. 情侣牵手|1|https://leetcode-cn.com/problems/couples-holding-hands| +|80. 删除排序数组中的重复项 II|1|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array-ii| +|77. 组合|1|https://leetcode-cn.com/problems/combinations| +|378. 有序矩阵中第K小的元素|1|https://leetcode-cn.com/problems/kth-smallest-element-in-a-sorted-matrix| +|498. 对角线遍历|1|https://leetcode-cn.com/problems/diagonal-traverse| +|384. 打乱数组|1|https://leetcode-cn.com/problems/shuffle-an-array| +|剑指 Offer 56 - I. 数组中数字出现的次数|1|https://leetcode-cn.com/problems/shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof| +|28. 实现 strStr()|1|https://leetcode-cn.com/problems/implement-strstr| +|剑指 Offer 32 - III. 从上到下打印二叉树 III|1|https://leetcode-cn.com/problems/cong-shang-dao-xia-da-yin-er-cha-shu-iii-lcof| +|207. 课程表|1|https://leetcode-cn.com/problems/course-schedule| +|763. 划分字母区间|1|https://leetcode-cn.com/problems/partition-labels| +|253. 会议室 II|1|https://leetcode-cn.com/problems/meeting-rooms-ii| \ No newline at end of file diff --git a/bytedance/client.md b/bytedance/client.md index 6714cea..72e6b89 100644 --- a/bytedance/client.md +++ b/bytedance/client.md @@ -1,146 +1,162 @@ # 客户端 +若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 |题目|出现次数|链接| |-|-|-| -|25. K 个一组翻转链表|16|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| -|53. 最大子序和|13|https://leetcode-cn.com/problems/maximum-subarray| -|206. 反转链表|13|https://leetcode-cn.com/problems/reverse-linked-list| -|160. 相交链表|12|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| -|146. LRU缓存机制|12|https://leetcode-cn.com/problems/lru-cache| -|215. 数组中的第K个最大元素|11|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| -|21. 合并两个有序链表|9|https://leetcode-cn.com/problems/merge-two-sorted-lists| +|25. K 个一组翻转链表|18|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| +|160. 相交链表|17|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| +|206. 反转链表|16|https://leetcode-cn.com/problems/reverse-linked-list| +|53. 最大子序和|14|https://leetcode-cn.com/problems/maximum-subarray| +|215. 数组中的第K个最大元素|13|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| +|146. LRU缓存机制|13|https://leetcode-cn.com/problems/lru-cache| +|15. 三数之和|11|https://leetcode-cn.com/problems/3sum| |3. 无重复字符的最长子串|9|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| +|21. 合并两个有序链表|9|https://leetcode-cn.com/problems/merge-two-sorted-lists| +|1. 两数之和|9|https://leetcode-cn.com/problems/two-sum| |236. 二叉树的最近公共祖先|8|https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree| |199. 二叉树的右视图|8|https://leetcode-cn.com/problems/binary-tree-right-side-view| -|15. 三数之和|8|https://leetcode-cn.com/problems/3sum| -|1. 两数之和|8|https://leetcode-cn.com/problems/two-sum| -|144. 二叉树的前序遍历|6|https://leetcode-cn.com/problems/binary-tree-preorder-traversal| -|104. 二叉树的最大深度|6|https://leetcode-cn.com/problems/maximum-depth-of-binary-tree| +|113. 路径总和 II|8|https://leetcode-cn.com/problems/path-sum-ii| +|121. 买卖股票的最佳时机|7|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| +|958. 二叉树的完全性检验|7|https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree| +|102. 二叉树的层序遍历|7|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| +|101. 对称二叉树|7|https://leetcode-cn.com/problems/symmetric-tree| |232. 用栈实现队列|6|https://leetcode-cn.com/problems/implement-queue-using-stacks| -|958. 二叉树的完全性检验|6|https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree| -|101. 对称二叉树|6|https://leetcode-cn.com/problems/symmetric-tree| -|113. 路径总和 II|6|https://leetcode-cn.com/problems/path-sum-ii| -|121. 买卖股票的最佳时机|6|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| +|144. 二叉树的前序遍历|6|https://leetcode-cn.com/problems/binary-tree-preorder-traversal| |543. 二叉树的直径|6|https://leetcode-cn.com/problems/diameter-of-binary-tree| -|102. 二叉树的层序遍历|6|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| |剑指 Offer 09. 用两个栈实现队列|6|https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof| +|104. 二叉树的最大深度|6|https://leetcode-cn.com/problems/maximum-depth-of-binary-tree| +|54. 螺旋矩阵|6|https://leetcode-cn.com/problems/spiral-matrix| +|415. 字符串相加|6|https://leetcode-cn.com/problems/add-strings| +|34. 在排序数组中查找元素的第一个和最后一个位置|6|https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array| +|41. 缺失的第一个正数|5|https://leetcode-cn.com/problems/first-missing-positive| |151. 翻转字符串里的单词|5|https://leetcode-cn.com/problems/reverse-words-in-a-string| -|34. 在排序数组中查找元素的第一个和最后一个位置|5|https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array| +|112. 路径总和|5|https://leetcode-cn.com/problems/path-sum| +|141. 环形链表|5|https://leetcode-cn.com/problems/linked-list-cycle| +|142. 环形链表 II|5|https://leetcode-cn.com/problems/linked-list-cycle-ii| +|103. 二叉树的锯齿形层次遍历|5|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| |200. 岛屿数量|5|https://leetcode-cn.com/problems/number-of-islands| -|41. 缺失的第一个正数|5|https://leetcode-cn.com/problems/first-missing-positive| -|105. 从前序与中序遍历序列构造二叉树|4|https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal| -|42. 接雨水|4|https://leetcode-cn.com/problems/trapping-rain-water| +|105. 从前序与中序遍历序列构造二叉树|5|https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal| +|56. 合并区间|5|https://leetcode-cn.com/problems/merge-intervals| +|2. 两数相加|5|https://leetcode-cn.com/problems/add-two-numbers| +|42. 接雨水|5|https://leetcode-cn.com/problems/trapping-rain-water| +|4. 寻找两个正序数组的中位数|5|https://leetcode-cn.com/problems/median-of-two-sorted-arrays| |344. 反转字符串|4|https://leetcode-cn.com/problems/reverse-string| -|415. 字符串相加|4|https://leetcode-cn.com/problems/add-strings| -|394. 字符串解码|4|https://leetcode-cn.com/problems/decode-string| +|240. 搜索二维矩阵 II|4|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| |460. LFU缓存|4|https://leetcode-cn.com/problems/lfu-cache| -|2. 两数相加|4|https://leetcode-cn.com/problems/add-two-numbers| -|142. 环形链表 II|4|https://leetcode-cn.com/problems/linked-list-cycle-ii| +|394. 字符串解码|4|https://leetcode-cn.com/problems/decode-string| +|69. x 的平方根|4|https://leetcode-cn.com/problems/sqrtx| |189. 旋转数组|4|https://leetcode-cn.com/problems/rotate-array| -|141. 环形链表|4|https://leetcode-cn.com/problems/linked-list-cycle| +|82. 删除排序链表中的重复元素 II|4|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii| +|59. 螺旋矩阵 II|4|https://leetcode-cn.com/problems/spiral-matrix-ii| |165. 比较版本号|4|https://leetcode-cn.com/problems/compare-version-numbers| -|82. 删除排序链表中的重复元素 II|3|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii| -|162. 寻找峰值|3|https://leetcode-cn.com/problems/find-peak-element| -|5. 最长回文子串|3|https://leetcode-cn.com/problems/longest-palindromic-substring| +|19. 删除链表的倒数第N个节点|4|https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list| +|剑指 Offer 22. 链表中倒数第k个节点|4|https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof| +|300. 最长上升子序列|3|https://leetcode-cn.com/problems/longest-increasing-subsequence| |94. 二叉树的中序遍历|3|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| -|240. 搜索二维矩阵 II|3|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| -|103. 二叉树的锯齿形层次遍历|3|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| -|56. 合并区间|3|https://leetcode-cn.com/problems/merge-intervals| +|145. 二叉树的后序遍历|3|https://leetcode-cn.com/problems/binary-tree-postorder-traversal| +|136. 只出现一次的数字|3|https://leetcode-cn.com/problems/single-number| |剑指 Offer 36. 二叉搜索树与双向链表|3|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof| -|剑指 Offer 22. 链表中倒数第k个节点|3|https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof| -|69. x 的平方根|3|https://leetcode-cn.com/problems/sqrtx| -|300. 最长上升子序列|3|https://leetcode-cn.com/problems/longest-increasing-subsequence| -|4. 寻找两个正序数组的中位数|3|https://leetcode-cn.com/problems/median-of-two-sorted-arrays| -|19. 删除链表的倒数第N个节点|3|https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list| +|162. 寻找峰值|3|https://leetcode-cn.com/problems/find-peak-element| +|46. 全排列|3|https://leetcode-cn.com/problems/permutations| |剑指 Offer 27. 二叉树的镜像|3|https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof| -|54. 螺旋矩阵|3|https://leetcode-cn.com/problems/spiral-matrix| -|145. 二叉树的后序遍历|3|https://leetcode-cn.com/problems/binary-tree-postorder-traversal| +|225. 用队列实现栈|3|https://leetcode-cn.com/problems/implement-stack-using-queues| +|110. 平衡二叉树|3|https://leetcode-cn.com/problems/balanced-binary-tree| +|5. 最长回文子串|3|https://leetcode-cn.com/problems/longest-palindromic-substring| +|补充题9. 36进制加法|3|https://mp.weixin.qq.com/s/bgD1Q5lc92mX7RNS1L65qA| +|剑指 Offer 33. 二叉搜索树的后序遍历序列|3|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof| +|88. 合并两个有序数组|2|https://leetcode-cn.com/problems/merge-sorted-array| +|518. 零钱兑换 II|2|https://leetcode-cn.com/problems/coin-change-2| +|剑指 Offer 52. 两个链表的第一个公共节点|2|https://leetcode-cn.com/problems/liang-ge-lian-biao-de-di-yi-ge-gong-gong-jie-dian-lcof| |剑指 Offer 45. 把数组排成最小的数|2|https://leetcode-cn.com/problems/ba-shu-zu-pai-cheng-zui-xiao-de-shu-lcof| -|1143. 最长公共子序列|2|https://leetcode-cn.com/problems/longest-common-subsequence| +|33. 搜索旋转排序数组|2|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| +|226. 翻转二叉树|2|https://leetcode-cn.com/problems/invert-binary-tree| +|234. 回文链表|2|https://leetcode-cn.com/problems/palindrome-linked-list| +|283. 移动零|2|https://leetcode-cn.com/problems/move-zeroes| +|剑指 Offer 21. 调整数组顺序使奇数位于偶数前面|2|https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof| |190. 颠倒二进制位|2|https://leetcode-cn.com/problems/reverse-bits| -|92. 反转链表 II|2|https://leetcode-cn.com/problems/reverse-linked-list-ii| -|164. 最大间距|2|https://leetcode-cn.com/problems/maximum-gap| +|122. 买卖股票的最佳时机 II|2|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| |7. 整数反转|2|https://leetcode-cn.com/problems/reverse-integer| -|136. 只出现一次的数字|2|https://leetcode-cn.com/problems/single-number| -|443. 压缩字符串|2|https://leetcode-cn.com/problems/string-compression| -|739. 每日温度|2|https://leetcode-cn.com/problems/daily-temperatures| -|234. 回文链表|2|https://leetcode-cn.com/problems/palindrome-linked-list| -|70. 爬楼梯|2|https://leetcode-cn.com/problems/climbing-stairs| -|20. 有效的括号|2|https://leetcode-cn.com/problems/valid-parentheses| +|662. 二叉树最大宽度|2|https://leetcode-cn.com/problems/maximum-width-of-binary-tree| |124. 二叉树中的最大路径和|2|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| -|48. 旋转图像|2|https://leetcode-cn.com/problems/rotate-image| -|46. 全排列|2|https://leetcode-cn.com/problems/permutations| -|59. 螺旋矩阵 II|2|https://leetcode-cn.com/problems/spiral-matrix-ii| -|438. 找到字符串中所有字母异位词|2|https://leetcode-cn.com/problems/find-all-anagrams-in-a-string| +|322. 零钱兑换|2|https://leetcode-cn.com/problems/coin-change| +|70. 爬楼梯|2|https://leetcode-cn.com/problems/climbing-stairs| |62. 不同路径|2|https://leetcode-cn.com/problems/unique-paths| -|225. 用队列实现栈|2|https://leetcode-cn.com/problems/implement-stack-using-queues| -|75. 颜色分类|2|https://leetcode-cn.com/problems/sort-colors| -|122. 买卖股票的最佳时机 II|2|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| -|110. 平衡二叉树|2|https://leetcode-cn.com/problems/balanced-binary-tree| -|155. 最小栈|2|https://leetcode-cn.com/problems/min-stack| -|518. 零钱兑换 II|2|https://leetcode-cn.com/problems/coin-change-2| -|33. 搜索旋转排序数组|2|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| -|283. 移动零|2|https://leetcode-cn.com/problems/move-zeroes| -|226. 翻转二叉树|2|https://leetcode-cn.com/problems/invert-binary-tree| +|191. 位1的个数|2|https://leetcode-cn.com/problems/number-of-1-bits| +|48. 旋转图像|2|https://leetcode-cn.com/problems/rotate-image| +|739. 每日温度|2|https://leetcode-cn.com/problems/daily-temperatures| +|92. 反转链表 II|2|https://leetcode-cn.com/problems/reverse-linked-list-ii| +|164. 最大间距|2|https://leetcode-cn.com/problems/maximum-gap| +|71. 简化路径|2|https://leetcode-cn.com/problems/simplify-path| +|98. 验证二叉搜索树|2|https://leetcode-cn.com/problems/validate-binary-search-tree| +|17. 电话号码的字母组合|2|https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number| +|16. 最接近的三数之和|2|https://leetcode-cn.com/problems/3sum-closest| +|20. 有效的括号|2|https://leetcode-cn.com/problems/valid-parentheses| |977. 有序数组的平方|2|https://leetcode-cn.com/problems/squares-of-a-sorted-array| +|155. 最小栈|2|https://leetcode-cn.com/problems/min-stack| +|443. 压缩字符串|2|https://leetcode-cn.com/problems/string-compression| +|1143. 最长公共子序列|2|https://leetcode-cn.com/problems/longest-common-subsequence| +|75. 颜色分类|2|https://leetcode-cn.com/problems/sort-colors| |315. 计算右侧小于当前元素的个数|2|https://leetcode-cn.com/problems/count-of-smaller-numbers-after-self| -|17. 电话号码的字母组合|2|https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number| -|662. 二叉树最大宽度|2|https://leetcode-cn.com/problems/maximum-width-of-binary-tree| -|191. 位1的个数|2|https://leetcode-cn.com/problems/number-of-1-bits| -|701. 二叉搜索树中的插入操作|1|https://leetcode-cn.com/problems/insert-into-a-binary-search-tree| -|238. 除自身以外数组的乘积|1|https://leetcode-cn.com/problems/product-of-array-except-self| +|438. 找到字符串中所有字母异位词|2|https://leetcode-cn.com/problems/find-all-anagrams-in-a-string| +|334. 递增的三元子序列|2|https://leetcode-cn.com/problems/increasing-triplet-subsequence| +|129. 求根到叶子节点数字之和|2|https://leetcode-cn.com/problems/sum-root-to-leaf-numbers| +|224. 基本计算器|2|https://leetcode-cn.com/problems/basic-calculator| +|680. 验证回文字符串 Ⅱ|2|https://leetcode-cn.com/problems/valid-palindrome-ii| +|补充题4. 手撕快速排序|2|https://leetcode-cn.com/problems/sort-an-array| +|128. 最长连续序列|1|https://leetcode-cn.com/problems/longest-consecutive-sequence| |480. 滑动窗口中位数|1|https://leetcode-cn.com/problems/sliding-window-median| -|26. 删除排序数组中的重复项|1|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array| +|23. 合并K个排序链表|1|https://leetcode-cn.com/problems/merge-k-sorted-lists| +|86. 分隔链表|1|https://leetcode-cn.com/problems/partition-list| +|140. 单词拆分 II|1|https://leetcode-cn.com/problems/word-break-ii| +|剑指 Offer 07. 重建二叉树|1|https://leetcode-cn.com/problems/zhong-jian-er-cha-shu-lcof| +|257. 二叉树的所有路径|1|https://leetcode-cn.com/problems/binary-tree-paths| |剑指 Offer 32 - III. 从上到下打印二叉树 III|1|https://leetcode-cn.com/problems/cong-shang-dao-xia-da-yin-er-cha-shu-iii-lcof| -|79. 单词搜索|1|https://leetcode-cn.com/problems/word-search| -|230. 二叉搜索树中第K小的元素|1|https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst| -|16. 最接近的三数之和|1|https://leetcode-cn.com/problems/3sum-closest| -|剑指 Offer 56 - II. 数组中数字出现的次数 II|1|https://leetcode-cn.com/problems/shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-ii-lcof| -|93. 复原IP地址|1|https://leetcode-cn.com/problems/restore-ip-addresses| +|209. 长度最小的子数组|1|https://leetcode-cn.com/problems/minimum-size-subarray-sum| |328. 奇偶链表|1|https://leetcode-cn.com/problems/odd-even-linked-list| -|1233. 删除子文件夹|1|https://leetcode-cn.com/problems/remove-sub-folders-from-the-filesystem| -|863. 二叉树中所有距离为 K 的结点|1|https://leetcode-cn.com/problems/all-nodes-distance-k-in-binary-tree| -|8. 字符串转换整数 (atoi)|1|https://leetcode-cn.com/problems/string-to-integer-atoi| -|剑指 Offer 34. 二叉树中和为某一值的路径|1|https://leetcode-cn.com/problems/er-cha-shu-zhong-he-wei-mou-yi-zhi-de-lu-jing-lcof| -|32. 最长有效括号|1|https://leetcode-cn.com/problems/longest-valid-parentheses| -|557. 反转字符串中的单词 III|1|https://leetcode-cn.com/problems/reverse-words-in-a-string-iii| -|329. 矩阵中的最长递增路径|1|https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix| -|242. 有效的字母异位词|1|https://leetcode-cn.com/problems/valid-anagram| -|179. 最大数|1|https://leetcode-cn.com/problems/largest-number| -|445. 两数相加 II|1|https://leetcode-cn.com/problems/add-two-numbers-ii| -|剑指 Offer 52. 两个链表的第一个公共节点|1|https://leetcode-cn.com/problems/liang-ge-lian-biao-de-di-yi-ge-gong-gong-jie-dian-lcof| -|面试题 01.06. 字符串压缩|1|https://leetcode-cn.com/problems/compress-string-lcci| -|剑指 Offer 21. 调整数组顺序使奇数位于偶数前面|1|https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof| -|129. 求根到叶子节点数字之和|1|https://leetcode-cn.com/problems/sum-root-to-leaf-numbers| -|138. 复制带随机指针的链表|1|https://leetcode-cn.com/problems/copy-list-with-random-pointer| -|24. 两两交换链表中的节点|1|https://leetcode-cn.com/problems/swap-nodes-in-pairs| +|61. 旋转链表|1|https://leetcode-cn.com/problems/rotate-list| |剑指 Offer 62. 圆圈中最后剩下的数字|1|https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof| -|128. 最长连续序列|1|https://leetcode-cn.com/problems/longest-consecutive-sequence| -|767. 重构字符串|1|https://leetcode-cn.com/problems/reorganize-string| -|257. 二叉树的所有路径|1|https://leetcode-cn.com/problems/binary-tree-paths| |55. 跳跃游戏|1|https://leetcode-cn.com/problems/jump-game| -|112. 路径总和|1|https://leetcode-cn.com/problems/path-sum| -|670. 最大交换|1|https://leetcode-cn.com/problems/maximum-swap| -|334. 递增的三元子序列|1|https://leetcode-cn.com/problems/increasing-triplet-subsequence| +|557. 反转字符串中的单词 III|1|https://leetcode-cn.com/problems/reverse-words-in-a-string-iii| +|445. 两数相加 II|1|https://leetcode-cn.com/problems/add-two-numbers-ii| +|1233. 删除子文件夹|1|https://leetcode-cn.com/problems/remove-sub-folders-from-the-filesystem| +|701. 二叉搜索树中的插入操作|1|https://leetcode-cn.com/problems/insert-into-a-binary-search-tree| +|72. 编辑距离|1|https://leetcode-cn.com/problems/edit-distance| |148. 排序链表|1|https://leetcode-cn.com/problems/sort-list| -|44. 通配符匹配|1|https://leetcode-cn.com/problems/wildcard-matching| -|402. 移掉K位数字|1|https://leetcode-cn.com/problems/remove-k-digits| -|61. 旋转链表|1|https://leetcode-cn.com/problems/rotate-list| -|86. 分隔链表|1|https://leetcode-cn.com/problems/partition-list| -|剑指 Offer 28. 对称的二叉树|1|https://leetcode-cn.com/problems/dui-cheng-de-er-cha-shu-lcof| -|209. 长度最小的子数组|1|https://leetcode-cn.com/problems/minimum-size-subarray-sum| -|98. 验证二叉搜索树|1|https://leetcode-cn.com/problems/validate-binary-search-tree| +|138. 复制带随机指针的链表|1|https://leetcode-cn.com/problems/copy-list-with-random-pointer| +|503. 下一个更大元素 II|1|https://leetcode-cn.com/problems/next-greater-element-ii| +|329. 矩阵中的最长递增路径|1|https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix| |1047. 删除字符串中的所有相邻重复项|1|https://leetcode-cn.com/problems/remove-all-adjacent-duplicates-in-string| -|120. 三角形最小路径和|1|https://leetcode-cn.com/problems/triangle| -|72. 编辑距离|1|https://leetcode-cn.com/problems/edit-distance| +|670. 最大交换|1|https://leetcode-cn.com/problems/maximum-swap| +|863. 二叉树中所有距离为 K 的结点|1|https://leetcode-cn.com/problems/all-nodes-distance-k-in-binary-tree| +|238. 除自身以外数组的乘积|1|https://leetcode-cn.com/problems/product-of-array-except-self| |347. 前 K 个高频元素|1|https://leetcode-cn.com/problems/top-k-frequent-elements| +|44. 通配符匹配|1|https://leetcode-cn.com/problems/wildcard-matching| +|79. 单词搜索|1|https://leetcode-cn.com/problems/word-search| +|767. 重构字符串|1|https://leetcode-cn.com/problems/reorganize-string| +|242. 有效的字母异位词|1|https://leetcode-cn.com/problems/valid-anagram| +|剑指 Offer 56 - II. 数组中数字出现的次数 II|1|https://leetcode-cn.com/problems/shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-ii-lcof| +|97. 交错字符串|1|https://leetcode-cn.com/problems/interleaving-string| +|面试题 01.06. 字符串压缩|1|https://leetcode-cn.com/problems/compress-string-lcci| |77. 组合|1|https://leetcode-cn.com/problems/combinations| -|140. 单词拆分 II|1|https://leetcode-cn.com/problems/word-break-ii| +|24. 两两交换链表中的节点|1|https://leetcode-cn.com/problems/swap-nodes-in-pairs| +|32. 最长有效括号|1|https://leetcode-cn.com/problems/longest-valid-parentheses| +|230. 二叉搜索树中第K小的元素|1|https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst| +|179. 最大数|1|https://leetcode-cn.com/problems/largest-number| +|93. 复原IP地址|1|https://leetcode-cn.com/problems/restore-ip-addresses| +|260. 只出现一次的数字 III|1|https://leetcode-cn.com/problems/single-number-iii| +|120. 三角形最小路径和|1|https://leetcode-cn.com/problems/triangle| +|8. 字符串转换整数 (atoi)|1|https://leetcode-cn.com/problems/string-to-integer-atoi| +|26. 删除排序数组中的重复项|1|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array| |80. 删除排序数组中的重复项 II|1|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array-ii| -|322. 零钱兑换|1|https://leetcode-cn.com/problems/coin-change| -|503. 下一个更大元素 II|1|https://leetcode-cn.com/problems/next-greater-element-ii| -|23. 合并K个排序链表|1|https://leetcode-cn.com/problems/merge-k-sorted-lists| -|剑指 Offer 07. 重建二叉树|1|https://leetcode-cn.com/problems/zhong-jian-er-cha-shu-lcof| -|71. 简化路径|1|https://leetcode-cn.com/problems/simplify-path| -|88. 合并两个有序数组|1|https://leetcode-cn.com/problems/merge-sorted-array| -|97. 交错字符串|1|https://leetcode-cn.com/problems/interleaving-string| -|260. 只出现一次的数字 III|1|https://leetcode-cn.com/problems/single-number-iii| \ No newline at end of file +|402. 移掉K位数字|1|https://leetcode-cn.com/problems/remove-k-digits| +|39. 组合总和|1|https://leetcode-cn.com/problems/combination-sum| +|剑指 Offer 48. 最长不含重复字符的子字符串|1|https://leetcode-cn.com/problems/zui-chang-bu-han-zhong-fu-zi-fu-de-zi-zi-fu-chuan-lcof| +|83. 删除排序链表中的重复元素|1|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list| +|剑指 Offer 17. 打印从1到最大的n位数|1|https://leetcode-cn.com/problems/da-yin-cong-1dao-zui-da-de-nwei-shu-lcof| +|125. 验证回文串|1|https://leetcode-cn.com/problems/valid-palindrome| +|139. 单词拆分|1|https://leetcode-cn.com/problems/word-break| +|239. 滑动窗口最大值|1|https://leetcode-cn.com/problems/sliding-window-maximum| +|76. 最小覆盖子串|1|https://leetcode-cn.com/problems/minimum-window-substring| +|221. 最大正方形|1|https://leetcode-cn.com/problems/maximal-square| +|补充题1. 排序奇升偶降链表|1|https://mp.weixin.qq.com/s/377FfqvpY8NwMInhpoDgsw| +|617. 合并二叉树|1|https://leetcode-cn.com/problems/merge-two-binary-trees| +|470. 用 Rand7() 实现 Rand10()|1|https://leetcode-cn.com/problems/implement-rand10-using-rand7| \ No newline at end of file diff --git a/bytedance/data.md b/bytedance/data.md index a9c3f0e..ac4deeb 100644 --- a/bytedance/data.md +++ b/bytedance/data.md @@ -1,25 +1,48 @@ # 数据研发 +若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 |题目|出现次数|链接| |-|-|-| +|25. K 个一组翻转链表|3|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| |232. 用栈实现队列|3|https://leetcode-cn.com/problems/implement-queue-using-stacks| -|440. 字典序的第K小数字|1|https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order| +|补充题1. 排序奇升偶降链表|2|https://mp.weixin.qq.com/s/377FfqvpY8NwMInhpoDgsw| +|98. 验证二叉搜索树|2|https://leetcode-cn.com/problems/validate-binary-search-tree| +|121. 买卖股票的最佳时机|2|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| +|53. 最大子序和|2|https://leetcode-cn.com/problems/maximum-subarray| +|122. 买卖股票的最佳时机 II|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| +|148. 排序链表|1|https://leetcode-cn.com/problems/sort-list| +|138. 复制带随机指针的链表|1|https://leetcode-cn.com/problems/copy-list-with-random-pointer| +|704. 二分查找|1|https://leetcode-cn.com/problems/binary-search| +|230. 二叉搜索树中第K小的元素|1|https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst| +|剑指 Offer 53 - I. 在排序数组中查找数字 I|1|https://leetcode-cn.com/problems/zai-pai-xu-shu-zu-zhong-cha-zhao-shu-zi-lcof| +|141. 环形链表|1|https://leetcode-cn.com/problems/linked-list-cycle| +|94. 二叉树的中序遍历|1|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| +|补充题6. 手撕堆排序|1|https://leetcode-cn.com/problems/sort-an-array| +|103. 二叉树的锯齿形层次遍历|1|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| +|113. 路径总和 II|1|https://leetcode-cn.com/problems/path-sum-ii| +|146. LRU缓存机制|1|https://leetcode-cn.com/problems/lru-cache| +|69. x 的平方根|1|https://leetcode-cn.com/problems/sqrtx| +|611. 有效三角形的个数|1|https://leetcode-cn.com/problems/valid-triangle-number| +|142. 环形链表 II|1|https://leetcode-cn.com/problems/linked-list-cycle-ii| +|剑指 Offer 51. 数组中的逆序对|1|https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof| +|43. 字符串相乘|1|https://leetcode-cn.com/problems/multiply-strings| +|补充题14. 阿拉伯数字转中文数字|1|| +|206. 反转链表|1|https://leetcode-cn.com/problems/reverse-linked-list| |剑指 Offer 41. 数据流中的中位数|1|https://leetcode-cn.com/problems/shu-ju-liu-zhong-de-zhong-wei-shu-lcof| -|516. 最长回文子序列|1|https://leetcode-cn.com/problems/longest-palindromic-subsequence| -|25. K 个一组翻转链表|1|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| -|226. 翻转二叉树|1|https://leetcode-cn.com/problems/invert-binary-tree| -|1201. 丑数 III|1|https://leetcode-cn.com/problems/ugly-number-iii| -|60. 第k个排列|1|https://leetcode-cn.com/problems/permutation-sequence| -|101. 对称二叉树|1|https://leetcode-cn.com/problems/symmetric-tree| -|33. 搜索旋转排序数组|1|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| -|121. 买卖股票的最佳时机|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| -|240. 搜索二维矩阵 II|1|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| -|剑指 Offer 59 - II. 队列的最大值|1|https://leetcode-cn.com/problems/dui-lie-de-zui-da-zhi-lcof| -|155. 最小栈|1|https://leetcode-cn.com/problems/min-stack| -|42. 接雨水|1|https://leetcode-cn.com/problems/trapping-rain-water| +|112. 路径总和|1|https://leetcode-cn.com/problems/path-sum| |3. 无重复字符的最长子串|1|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| -|5. 最长回文子串|1|https://leetcode-cn.com/problems/longest-palindromic-substring| +|剑指 Offer 59 - II. 队列的最大值|1|https://leetcode-cn.com/problems/dui-lie-de-zui-da-zhi-lcof| +|101. 对称二叉树|1|https://leetcode-cn.com/problems/symmetric-tree| +|297. 二叉树的序列化与反序列化|1|https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree| |92. 反转链表 II|1|https://leetcode-cn.com/problems/reverse-linked-list-ii| -|206. 反转链表|1|https://leetcode-cn.com/problems/reverse-linked-list| -|112. 路径总和|1|https://leetcode-cn.com/problems/path-sum| +|226. 翻转二叉树|1|https://leetcode-cn.com/problems/invert-binary-tree| +|440. 字典序的第K小数字|1|https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order| +|143. 重排链表|1|https://leetcode-cn.com/problems/reorder-list| +|42. 接雨水|1|https://leetcode-cn.com/problems/trapping-rain-water| +|240. 搜索二维矩阵 II|1|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| +|60. 第k个排列|1|https://leetcode-cn.com/problems/permutation-sequence| +|516. 最长回文子序列|1|https://leetcode-cn.com/problems/longest-palindromic-subsequence| |718. 最长重复子数组|1|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| -|297. 二叉树的序列化与反序列化|1|https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree| \ No newline at end of file +|5. 最长回文子串|1|https://leetcode-cn.com/problems/longest-palindromic-substring| +|155. 最小栈|1|https://leetcode-cn.com/problems/min-stack| +|33. 搜索旋转排序数组|1|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| +|1201. 丑数 III|1|https://leetcode-cn.com/problems/ugly-number-iii| \ No newline at end of file diff --git a/bytedance/frontend.md b/bytedance/frontend.md index 224668d..6cb55c7 100644 --- a/bytedance/frontend.md +++ b/bytedance/frontend.md @@ -1,79 +1,99 @@ # 前端 +若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 |题目|出现次数|链接| |-|-|-| -|215. 数组中的第K个最大元素|8|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| +|88. 合并两个有序数组|14|https://leetcode-cn.com/problems/merge-sorted-array| +|3. 无重复字符的最长子串|13|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| +|215. 数组中的第K个最大元素|10|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| +|112. 路径总和|9|https://leetcode-cn.com/problems/path-sum| +|1. 两数之和|8|https://leetcode-cn.com/problems/two-sum| |209. 长度最小的子数组|8|https://leetcode-cn.com/problems/minimum-size-subarray-sum| -|1. 两数之和|6|https://leetcode-cn.com/problems/two-sum| -|88. 合并两个有序数组|5|https://leetcode-cn.com/problems/merge-sorted-array| -|112. 路径总和|5|https://leetcode-cn.com/problems/path-sum| +|53. 最大子序和|8|https://leetcode-cn.com/problems/maximum-subarray| +|129. 求根到叶子节点数字之和|7|https://leetcode-cn.com/problems/sum-root-to-leaf-numbers| +|165. 比较版本号|7|https://leetcode-cn.com/problems/compare-version-numbers| +|415. 字符串相加|6|https://leetcode-cn.com/problems/add-strings| |93. 复原IP地址|5|https://leetcode-cn.com/problems/restore-ip-addresses| -|129. 求根到叶子节点数字之和|5|https://leetcode-cn.com/problems/sum-root-to-leaf-numbers| -|3. 无重复字符的最长子串|5|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| -|415. 字符串相加|5|https://leetcode-cn.com/problems/add-strings| -|53. 最大子序和|4|https://leetcode-cn.com/problems/maximum-subarray| +|剑指 Offer 22. 链表中倒数第k个节点|5|https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof| +|141. 环形链表|5|https://leetcode-cn.com/problems/linked-list-cycle| +|102. 二叉树的层序遍历|5|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| +|230. 二叉搜索树中第K小的元素|5|https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst| +|46. 全排列|4|https://leetcode-cn.com/problems/permutations| +|160. 相交链表|4|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| +|62. 不同路径|4|https://leetcode-cn.com/problems/unique-paths| |695. 岛屿的最大面积|4|https://leetcode-cn.com/problems/max-area-of-island| -|165. 比较版本号|4|https://leetcode-cn.com/problems/compare-version-numbers| |226. 翻转二叉树|4|https://leetcode-cn.com/problems/invert-binary-tree| -|230. 二叉搜索树中第K小的元素|3|https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst| +|718. 最长重复子数组|4|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| +|剑指 Offer 62. 圆圈中最后剩下的数字|3|https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof| +|206. 反转链表|3|https://leetcode-cn.com/problems/reverse-linked-list| +|15. 三数之和|3|https://leetcode-cn.com/problems/3sum| |113. 路径总和 II|3|https://leetcode-cn.com/problems/path-sum-ii| -|141. 环形链表|3|https://leetcode-cn.com/problems/linked-list-cycle| +|54. 螺旋矩阵|3|https://leetcode-cn.com/problems/spiral-matrix| +|70. 爬楼梯|3|https://leetcode-cn.com/problems/climbing-stairs| +|509. 斐波那契数|3|https://leetcode-cn.com/problems/fibonacci-number| +|200. 岛屿数量|3|https://leetcode-cn.com/problems/number-of-islands| +|104. 二叉树的最大深度|3|https://leetcode-cn.com/problems/maximum-depth-of-binary-tree| |121. 买卖股票的最佳时机|3|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| -|160. 相交链表|3|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| |94. 二叉树的中序遍历|3|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| -|15. 三数之和|3|https://leetcode-cn.com/problems/3sum| -|104. 二叉树的最大深度|2|https://leetcode-cn.com/problems/maximum-depth-of-binary-tree| +|144. 二叉树的前序遍历|2|https://leetcode-cn.com/problems/binary-tree-preorder-traversal| +|198. 打家劫舍|2|https://leetcode-cn.com/problems/house-robber| +|199. 二叉树的右视图|2|https://leetcode-cn.com/problems/binary-tree-right-side-view| +|14. 最长公共前缀|2|https://leetcode-cn.com/problems/longest-common-prefix| +|补充题3. 求区间最小数乘区间和的最大值|2|https://mp.weixin.qq.com/s/ABNN4lJpvttulwWaUTgYZQ| +|剑指 Offer 09. 用两个栈实现队列|2|https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof| +|剑指 Offer 21. 调整数组顺序使奇数位于偶数前面|2|https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof| +|429. N叉树的层序遍历|2|https://leetcode-cn.com/problems/n-ary-tree-level-order-traversal| +|56. 合并区间|2|https://leetcode-cn.com/problems/merge-intervals| +|剑指 Offer 24. 反转链表|2|https://leetcode-cn.com/problems/fan-zhuan-lian-biao-lcof| +|349. 两个数组的交集|2|https://leetcode-cn.com/problems/intersection-of-two-arrays| |42. 接雨水|2|https://leetcode-cn.com/problems/trapping-rain-water| -|718. 最长重复子数组|2|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| -|509. 斐波那契数|2|https://leetcode-cn.com/problems/fibonacci-number| +|155. 最小栈|2|https://leetcode-cn.com/problems/min-stack| +|20. 有效的括号|2|https://leetcode-cn.com/problems/valid-parentheses| +|21. 合并两个有序链表|2|https://leetcode-cn.com/problems/merge-two-sorted-lists| |169. 多数元素|2|https://leetcode-cn.com/problems/majority-element| -|54. 螺旋矩阵|2|https://leetcode-cn.com/problems/spiral-matrix| -|剑指 Offer 21. 调整数组顺序使奇数位于偶数前面|2|https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof| -|剑指 Offer 22. 链表中倒数第k个节点|2|https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof| |394. 字符串解码|2|https://leetcode-cn.com/problems/decode-string| -|155. 最小栈|2|https://leetcode-cn.com/problems/min-stack| -|102. 二叉树的层序遍历|2|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| -|206. 反转链表|2|https://leetcode-cn.com/problems/reverse-linked-list| -|144. 二叉树的前序遍历|2|https://leetcode-cn.com/problems/binary-tree-preorder-traversal| -|补充题3. 求区间最小数乘区间和的最大值|2|https://mp.weixin.qq.com/s/ABNN4lJpvttulwWaUTgYZQ| -|142. 环形链表 II|1|https://leetcode-cn.com/problems/linked-list-cycle-ii| -|14. 最长公共前缀|1|https://leetcode-cn.com/problems/longest-common-prefix| +|剑指 Offer 38. 字符串的排列|1|https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcof| +|63. 不同路径 II|1|https://leetcode-cn.com/problems/unique-paths-ii| +|609. 在系统中查找重复文件|1|https://leetcode-cn.com/problems/find-duplicate-file-in-system| +|剑指 Offer 63. 股票的最大利润|1|https://leetcode-cn.com/problems/gu-piao-de-zui-da-li-run-lcof| +|剑指 Offer 27. 二叉树的镜像|1|https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof| +|232. 用栈实现队列|1|https://leetcode-cn.com/problems/implement-queue-using-stacks| +|剑指 Offer 48. 最长不含重复字符的子字符串|1|https://leetcode-cn.com/problems/zui-chang-bu-han-zhong-fu-zi-fu-de-zi-zi-fu-chuan-lcof| +|1353. 最多可以参加的会议数目|1|https://leetcode-cn.com/problems/maximum-number-of-events-that-can-be-attended| +|5. 最长回文子串|1|https://leetcode-cn.com/problems/longest-palindromic-substring| +|39. 组合总和|1|https://leetcode-cn.com/problems/combination-sum| +|300. 最长上升子序列|1|https://leetcode-cn.com/problems/longest-increasing-subsequence| +|剑指 Offer 10- I. 斐波那契数列|1|https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof| +|LCP 04. 覆盖|1|https://leetcode-cn.com/problems/broken-board-dominoes| +|717. 1比特与2比特字符|1|https://leetcode-cn.com/problems/1-bit-and-2-bit-characters| +|361. 轰炸敌人|1|https://leetcode-cn.com/problems/bomb-enemy| +|525. 连续数组|1|https://leetcode-cn.com/problems/contiguous-array| +|103. 二叉树的锯齿形层次遍历|1|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| +|96. 不同的二叉搜索树|1|https://leetcode-cn.com/problems/unique-binary-search-trees| +|剑指 Offer 04. 二维数组中的查找|1|https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof| |680. 验证回文字符串 Ⅱ|1|https://leetcode-cn.com/problems/valid-palindrome-ii| +|322. 零钱兑换|1|https://leetcode-cn.com/problems/coin-change| +|124. 二叉树中的最大路径和|1|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| |19. 删除链表的倒数第N个节点|1|https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list| +|221. 最大正方形|1|https://leetcode-cn.com/problems/maximal-square| +|98. 验证二叉搜索树|1|https://leetcode-cn.com/problems/validate-binary-search-tree| +|1047. 删除字符串中的所有相邻重复项|1|https://leetcode-cn.com/problems/remove-all-adjacent-duplicates-in-string| +|44. 通配符匹配|1|https://leetcode-cn.com/problems/wildcard-matching| +|130. 被围绕的区域|1|https://leetcode-cn.com/problems/surrounded-regions| |16. 最接近的三数之和|1|https://leetcode-cn.com/problems/3sum-closest| -|468. 验证IP地址|1|https://leetcode-cn.com/problems/validate-ip-address| -|70. 爬楼梯|1|https://leetcode-cn.com/problems/climbing-stairs| +|498. 对角线遍历|1|https://leetcode-cn.com/problems/diagonal-traverse| |224. 基本计算器|1|https://leetcode-cn.com/problems/basic-calculator| -|151. 翻转字符串里的单词|1|https://leetcode-cn.com/problems/reverse-words-in-a-string| -|63. 不同路径 II|1|https://leetcode-cn.com/problems/unique-paths-ii| -|124. 二叉树中的最大路径和|1|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| +|227. 基本计算器 II|1|https://leetcode-cn.com/problems/basic-calculator-ii| +|257. 二叉树的所有路径|1|https://leetcode-cn.com/problems/binary-tree-paths| |443. 压缩字符串|1|https://leetcode-cn.com/problems/string-compression| -|109. 有序链表转换二叉搜索树|1|https://leetcode-cn.com/problems/convert-sorted-list-to-binary-search-tree| -|39. 组合总和|1|https://leetcode-cn.com/problems/combination-sum| -|剑指 Offer 48. 最长不含重复字符的子字符串|1|https://leetcode-cn.com/problems/zui-chang-bu-han-zhong-fu-zi-fu-de-zi-zi-fu-chuan-lcof| -|130. 被围绕的区域|1|https://leetcode-cn.com/problems/surrounded-regions| +|142. 环形链表 II|1|https://leetcode-cn.com/problems/linked-list-cycle-ii| +|984. 不含 AAA 或 BBB 的字符串|1|https://leetcode-cn.com/problems/string-without-aaa-or-bbb| |67. 二进制求和|1|https://leetcode-cn.com/problems/add-binary| -|1498. 满足条件的子序列数目|1|https://leetcode-cn.com/problems/number-of-subsequences-that-satisfy-the-given-sum-condition| -|62. 不同路径|1|https://leetcode-cn.com/problems/unique-paths| -|114. 二叉树展开为链表|1|https://leetcode-cn.com/problems/flatten-binary-tree-to-linked-list| -|199. 二叉树的右视图|1|https://leetcode-cn.com/problems/binary-tree-right-side-view| -|31. 下一个排列|1|https://leetcode-cn.com/problems/next-permutation| -|221. 最大正方形|1|https://leetcode-cn.com/problems/maximal-square| -|498. 对角线遍历|1|https://leetcode-cn.com/problems/diagonal-traverse| -|1047. 删除字符串中的所有相邻重复项|1|https://leetcode-cn.com/problems/remove-all-adjacent-duplicates-in-string| -|剑指 Offer 04. 二维数组中的查找|1|https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof| +|468. 验证IP地址|1|https://leetcode-cn.com/problems/validate-ip-address| +|151. 翻转字符串里的单词|1|https://leetcode-cn.com/problems/reverse-words-in-a-string| |213. 打家劫舍 II|1|https://leetcode-cn.com/problems/house-robber-ii| -|232. 用栈实现队列|1|https://leetcode-cn.com/problems/implement-queue-using-stacks| -|44. 通配符匹配|1|https://leetcode-cn.com/problems/wildcard-matching| -|984. 不含 AAA 或 BBB 的字符串|1|https://leetcode-cn.com/problems/string-without-aaa-or-bbb| -|862. 和至少为 K 的最短子数组|1|https://leetcode-cn.com/problems/shortest-subarray-with-sum-at-least-k| -|21. 合并两个有序链表|1|https://leetcode-cn.com/problems/merge-two-sorted-lists| -|46. 全排列|1|https://leetcode-cn.com/problems/permutations| -|剑指 Offer 24. 反转链表|1|https://leetcode-cn.com/problems/fan-zhuan-lian-biao-lcof| -|198. 打家劫舍|1|https://leetcode-cn.com/problems/house-robber| -|609. 在系统中查找重复文件|1|https://leetcode-cn.com/problems/find-duplicate-file-in-system| -|200. 岛屿数量|1|https://leetcode-cn.com/problems/number-of-islands| +|114. 二叉树展开为链表|1|https://leetcode-cn.com/problems/flatten-binary-tree-to-linked-list| +|109. 有序链表转换二叉搜索树|1|https://leetcode-cn.com/problems/convert-sorted-list-to-binary-search-tree| |242. 有效的字母异位词|1|https://leetcode-cn.com/problems/valid-anagram| -|322. 零钱兑换|1|https://leetcode-cn.com/problems/coin-change| -|257. 二叉树的所有路径|1|https://leetcode-cn.com/problems/binary-tree-paths| -|98. 验证二叉搜索树|1|https://leetcode-cn.com/problems/validate-binary-search-tree| -|227. 基本计算器 II|1|https://leetcode-cn.com/problems/basic-calculator-ii| \ No newline at end of file +|862. 和至少为 K 的最短子数组|1|https://leetcode-cn.com/problems/shortest-subarray-with-sum-at-least-k| +|31. 下一个排列|1|https://leetcode-cn.com/problems/next-permutation| +|1498. 满足条件的子序列数目|1|https://leetcode-cn.com/problems/number-of-subsequences-that-satisfy-the-given-sum-condition| \ No newline at end of file diff --git a/bytedance/latest.md b/bytedance/latest.md index e7bf22a..aa756cc 100644 --- a/bytedance/latest.md +++ b/bytedance/latest.md @@ -1,83 +1,195 @@ # 字节跳动最新涉及的leetcode题目 -本次统计了2.4日~2.28日的56篇面经。 +本次统计了3.1日~4.6日的289篇面经。 最近我开发了一个简易版网站https://codetop.cc/ 网站比静态的markdown更方便大家按公司/部门/岗位查询题目 欢迎大家前来体验❤️ -| 题目 | 出现次数 | 链接 | -|------------------------------|------|----------------------------------------------------------------------------------------------------| -| 160. 相交链表 | 5 | https://leetcode-cn.com/problems/intersection-of-two-linked-lists | -| 215. 数组中的第K个最大元素 | 4 | https://leetcode-cn.com/problems/kth-largest-element-in-an-array | -| 39. 组合总和 | 4 | https://leetcode-cn.com/problems/combination-sum | -| 20. 有效的括号 | 3 | https://leetcode-cn.com/problems/valid-parentheses | -| 15. 三数之和 | 3 | https://leetcode-cn.com/problems/3sum | -| 1. 两数之和 | 2 | https://leetcode-cn.com/problems/two-sum | -| 141. 环形链表 | 2 | https://leetcode-cn.com/problems/linked-list-cycle | -| 121. 买卖股票的最佳时机 | 2 | https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock | -| 162. 寻找峰值 | 2 | https://leetcode-cn.com/problems/find-peak-element | -| 79. 单词搜索 | 2 | https://leetcode-cn.com/problems/word-search | -| 3. 无重复字符的最长子串 | 2 | https://leetcode-cn.com/problems/longest-substring-without-repeating-characters | -| 146. LRU缓存机制 | 2 | https://leetcode-cn.com/problems/lru-cache | -| 剑指 Offer 10- II. 青蛙跳台阶问题 | 2 | https://leetcode-cn.com/problems/qing-wa-tiao-tai-jie-wen-ti-lcof | -| 31. 下一个排列 | 2 | https://leetcode-cn.com/problems/next-permutation | -| 206. 反转链表 | 2 | https://leetcode-cn.com/problems/reverse-linked-list | -| 25. K 个一组翻转链表 | 2 | https://leetcode-cn.com/problems/reverse-nodes-in-k-group | -| 33. 搜索旋转排序数组 | 2 | https://leetcode-cn.com/problems/search-in-rotated-sorted-array | -| 24. 两两交换链表中的节点 | 1 | https://leetcode-cn.com/problems/swap-nodes-in-pairs | -| 232. 用栈实现队列 | 1 | https://leetcode-cn.com/problems/implement-queue-using-stacks | -| 8. 字符串转换整数 (atoi) | 1 | https://leetcode-cn.com/problems/string-to-integer-atoi | -| 236. 二叉树的最近公共祖先 | 1 | https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree | -| 415. 字符串相加 | 1 | https://leetcode-cn.com/problems/add-strings | -| 459. 重复的子字符串 | 1 | https://leetcode-cn.com/problems/repeated-substring-pattern | -| 98. 验证二叉搜索树 | 1 | https://leetcode-cn.com/problems/validate-binary-search-tree | -| 440. 字典序的第K小数字 | 1 | https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order | -| 122. 买卖股票的最佳时机 II | 1 | https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii | -| 1095. 山脉数组中查找目标值 | 1 | https://leetcode-cn.com/problems/find-in-mountain-array | -| 155. 最小栈 | 1 | https://leetcode-cn.com/problems/min-stack | -| 260. 只出现一次的数字 III | 1 | https://leetcode-cn.com/problems/single-number-iii | -| 136. 只出现一次的数字 | 1 | https://leetcode-cn.com/problems/single-number | -| 226. 翻转二叉树 | 1 | https://leetcode-cn.com/problems/invert-binary-tree | -| 69. x 的平方根 | 1 | https://leetcode-cn.com/problems/sqrtx | -| 72. 编辑距离 | 1 | https://leetcode-cn.com/problems/edit-distance | -| 199. 二叉树的右视图 | 1 | https://leetcode-cn.com/problems/binary-tree-right-side-view | -| 3. 无重复字符的最长子串 | 1 | https://leetcode-cn.com/problems/longest-substring-without-repeating-characters | -| 补充题1. 排序奇升偶降链表 | 1 | https://leetcode-cn.com/problems/undefined | -| 剑指 Offer 21. 调整数组顺序使奇数位于偶数前面 | 1 | https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof | -| 102. 二叉树的层序遍历 | 1 | https://leetcode-cn.com/problems/binary-tree-level-order-traversal | -| 198. 打家劫舍 | 1 | https://leetcode-cn.com/problems/house-robber | -| 11. 盛最多水的容器 | 1 | https://leetcode-cn.com/problems/container-with-most-water | -| 456. 132模式 | 1 | https://leetcode-cn.com/problems/132-pattern | -| 补充题4. 手撕快速排序 | 1 | https://leetcode-cn.com/problems/undefined | -| 209. 长度最小的子数组 | 1 | https://leetcode-cn.com/problems/minimum-size-subarray-sum | -| 21. 合并两个有序链表 | 1 | https://leetcode-cn.com/problems/merge-two-sorted-lists | -| 56. 合并区间 | 1 | https://leetcode-cn.com/problems/merge-intervals | -| 43. 字符串相乘 | 1 | https://leetcode-cn.com/problems/multiply-strings | -| 14. 最长公共前缀 | 1 | https://leetcode-cn.com/problems/longest-common-prefix | -| 230. 二叉搜索树中第K小的元素 | 1 | https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst | -| 739. 每日温度 | 1 | https://leetcode-cn.com/problems/daily-temperatures | -| 695. 岛屿的最大面积 | 1 | https://leetcode-cn.com/problems/max-area-of-island | -| 64. 最小路径和 | 1 | https://leetcode-cn.com/problems/minimum-path-sum | -| 53. 最大子序和 | 1 | https://leetcode-cn.com/problems/maximum-subarray | -| 92. 反转链表 II | 1 | https://leetcode-cn.com/problems/reverse-linked-list-ii | -| 54. 螺旋矩阵 | 1 | https://leetcode-cn.com/problems/spiral-matrix | -| 18. 四数之和 | 1 | https://leetcode-cn.com/problems/4sum | -| 322. 零钱兑换 | 1 | https://leetcode-cn.com/problems/coin-change | -| 41. 缺失的第一个正数 | 1 | https://leetcode-cn.com/problems/first-missing-positive | -| 103. 二叉树的锯齿形层次遍历 | 1 | https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal | -| 662. 二叉树最大宽度 | 1 | https://leetcode-cn.com/problems/maximum-width-of-binary-tree | -| 46. 全排列 | 1 | https://leetcode-cn.com/problems/permutations | -| 143. 重排链表 | 1 | https://leetcode-cn.com/problems/reorder-list | -| 415. 字符串相加 | 1 | https://leetcode-cn.com/problems/add-strings | -| 402. 移掉K位数字 | 1 | https://leetcode-cn.com/problems/remove-k-digits | -| 169. 多数元素 | 1 | https://leetcode-cn.com/problems/majority-element | -| 93. 复原 IP 地址 | 1 | https://leetcode-cn.com/problems/restore-ip-addresses | -| 152. 乘积最大子数组 | 1 | https://leetcode-cn.com/problems/maximum-product-subarray | -| 48. 旋转图像 | 1 | https://leetcode-cn.com/problems/rotate-image | -| 125. 验证回文串 | 1 | https://leetcode-cn.com/problems/valid-palindrome | -| 922. 按奇偶排序数组 II | 1 | https://leetcode-cn.com/problems/sort-array-by-parity-ii | -| 61. 旋转链表 | 1 | https://leetcode-cn.com/problems/rotate-list | -| 142. 环形链表 II | 1 | https://leetcode-cn.com/problems/linked-list-cycle-ii | -| 83. 删除排序链表中的重复元素 | 1 | https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list | +| 题目 | 出现次数 | 链接 | +|------------------------------|------|-------------------------------------------------------------------------------------------------------------| +| 25. K 个一组翻转链表 | 15 | https://leetcode-cn.com/problems/reverse-nodes-in-k-group | +| 215. 数组中的第K个最大元素 | 15 | https://leetcode-cn.com/problems/kth-largest-element-in-an-array | +| 3. 无重复字符的最长子串 | 14 | https://leetcode-cn.com/problems/longest-substring-without-repeating-characters | +| 103. 二叉树的锯齿形层次遍历 | 13 | https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal | +| 160. 相交链表 | 12 | https://leetcode-cn.com/problems/intersection-of-two-linked-lists | +| 56. 合并区间 | 10 | https://leetcode-cn.com/problems/merge-intervals | +| 88. 合并两个有序数组 | 9 | https://leetcode-cn.com/problems/merge-sorted-array | +| 206. 反转链表 | 8 | https://leetcode-cn.com/problems/reverse-linked-list | +| 200. 岛屿数量 | 8 | https://leetcode-cn.com/problems/number-of-islands | +| 5. 最长回文子串 | 8 | https://leetcode-cn.com/problems/longest-palindromic-substring | +| 1. 两数之和 | 8 | https://leetcode-cn.com/problems/two-sum | +| 300. 最长上升子序列 | 7 | https://leetcode-cn.com/problems/longest-increasing-subsequence | +| 15. 三数之和 | 7 | https://leetcode-cn.com/problems/3sum | +| 剑指 Offer 22. 链表中倒数第k个节点 | 7 | https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof | +| 21. 合并两个有序链表 | 7 | https://leetcode-cn.com/problems/merge-two-sorted-lists | +| 补充题4. 手撕快速排序 | 7 | https://leetcode-cn.com/problems/undefined | +| 121. 买卖股票的最佳时机 | 6 | https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock | +| 83. 删除排序链表中的重复元素 | 6 | https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list | +| 141. 环形链表 | 6 | https://leetcode-cn.com/problems/linked-list-cycle | +| 33. 搜索旋转排序数组 | 6 | https://leetcode-cn.com/problems/search-in-rotated-sorted-array | +| 112. 路径总和 | 6 | https://leetcode-cn.com/problems/path-sum | +| 958. 二叉树的完全性检验 | 5 | https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree | +| 101. 对称二叉树 | 5 | https://leetcode-cn.com/problems/symmetric-tree | +| 补充题1. 排序奇升偶降链表 | 5 | https://leetcode-cn.com/problems/undefined | +| 146. LRU缓存机制 | 5 | https://leetcode-cn.com/problems/lru-cache | +| 54. 螺旋矩阵 | 5 | https://leetcode-cn.com/problems/spiral-matrix | +| 142. 环形链表 II | 5 | https://leetcode-cn.com/problems/linked-list-cycle-ii | +| 94. 二叉树的中序遍历 | 5 | https://leetcode-cn.com/problems/binary-tree-inorder-traversal | +| 23. 合并K个排序链表 | 5 | https://leetcode-cn.com/problems/merge-k-sorted-lists | +| 102. 二叉树的层序遍历 | 5 | https://leetcode-cn.com/problems/binary-tree-level-order-traversal | +| 470. 用 Rand7() 实现 Rand10() | 5 | https://leetcode-cn.com/problems/implement-rand10-using-rand7 | +| 124. 二叉树中的最大路径和 | 5 | https://leetcode-cn.com/problems/binary-tree-maximum-path-sum | +| 230. 二叉搜索树中第K小的元素 | 5 | https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst | +| 236. 二叉树的最近公共祖先 | 5 | https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree | +| 70. 爬楼梯 | 4 | https://leetcode-cn.com/problems/climbing-stairs | +| 169. 多数元素 | 4 | https://leetcode-cn.com/problems/majority-element | +| 143. 重排链表 | 4 | https://leetcode-cn.com/problems/reorder-list | +| 240. 搜索二维矩阵 II | 4 | https://leetcode-cn.com/problems/search-a-2d-matrix-ii | +| 剑指 Offer 62. 圆圈中最后剩下的数字 | 4 | https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof | +| 165. 比较版本号 | 4 | https://leetcode-cn.com/problems/compare-version-numbers | +| 232. 用栈实现队列 | 4 | https://leetcode-cn.com/problems/implement-queue-using-stacks | +| 22. 括号生成 | 4 | https://leetcode-cn.com/problems/generate-parentheses | +| 92. 反转链表 II | 4 | https://leetcode-cn.com/problems/reverse-linked-list-ii | +| 98. 验证二叉搜索树 | 4 | https://leetcode-cn.com/problems/validate-binary-search-tree | +| 46. 全排列 | 4 | https://leetcode-cn.com/problems/permutations | +| 718. 最长重复子数组 | 4 | https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray | +| 69. x 的平方根 | 4 | https://leetcode-cn.com/problems/sqrtx | +| 122. 买卖股票的最佳时机 II | 3 | https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii | +| 39. 组合总和 | 3 | https://leetcode-cn.com/problems/combination-sum | +| 113. 路径总和 II | 3 | https://leetcode-cn.com/problems/path-sum-ii | +| 32. 最长有效括号 | 3 | https://leetcode-cn.com/problems/longest-valid-parentheses | +| 224. 基本计算器 | 3 | https://leetcode-cn.com/problems/basic-calculator | +| 226. 翻转二叉树 | 3 | https://leetcode-cn.com/problems/invert-binary-tree | +| 20. 有效的括号 | 3 | https://leetcode-cn.com/problems/valid-parentheses | +| 53. 最大子序和 | 3 | https://leetcode-cn.com/problems/maximum-subarray | +| 64. 最小路径和 | 3 | https://leetcode-cn.com/problems/minimum-path-sum | +| 42. 接雨水 | 3 | https://leetcode-cn.com/problems/trapping-rain-water | +| 199. 二叉树的右视图 | 3 | https://leetcode-cn.com/problems/binary-tree-right-side-view | +| 补充题9. 36进制加法 | 3 | https://leetcode-cn.com/problems/undefined | +| 72. 编辑距离 | 3 | https://leetcode-cn.com/problems/edit-distance | +| 138. 复制带随机指针的链表 | 3 | https://leetcode-cn.com/problems/copy-list-with-random-pointer | +| 415. 字符串相加 | 3 | https://leetcode-cn.com/problems/add-strings | +| 227. 基本计算器 II | 3 | https://leetcode-cn.com/problems/basic-calculator-ii | +| 129. 求根到叶子节点数字之和 | 3 | https://leetcode-cn.com/problems/sum-root-to-leaf-numbers | +| 补充题2. 圆环回原点问题 | 3 | https://leetcode-cn.com/problems/undefined | +| 75. 颜色分类 | 2 | https://leetcode-cn.com/problems/sort-colors | +| 41. 缺失的第一个正数 | 2 | https://leetcode-cn.com/problems/first-missing-positive | +| 剑指 Offer 36. 二叉搜索树与双向链表 | 2 | https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof | +| 26. 删除排序数组中的重复项 | 2 | https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array | +| 76. 最小覆盖子串 | 2 | https://leetcode-cn.com/problems/minimum-window-substring | +| 105. 从前序与中序遍历序列构造二叉树 | 2 | https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal | +| 225. 用队列实现栈 | 2 | https://leetcode-cn.com/problems/implement-stack-using-queues | +| 647. 回文子串 | 2 | https://leetcode-cn.com/problems/palindromic-substrings | +| 剑指 Offer 27. 二叉树的镜像 | 2 | https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof | +| 4. 寻找两个正序数组的中位数 | 2 | https://leetcode-cn.com/problems/median-of-two-sorted-arrays | +| 209. 长度最小的子数组 | 2 | https://leetcode-cn.com/problems/minimum-size-subarray-sum | +| 剑指 Offer 54. 二叉搜索树的第k大节点 | 2 | https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof | +| 34. 在排序数组中查找元素的第一个和最后一个位置 | 2 | https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array | +| 剑指 Offer 10- I. 斐波那契数列 | 2 | https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof | +| 125. 验证回文串 | 2 | https://leetcode-cn.com/problems/valid-palindrome | +| 680. 验证回文字符串 Ⅱ | 2 | https://leetcode-cn.com/problems/valid-palindrome-ii | +| 110. 平衡二叉树 | 2 | https://leetcode-cn.com/problems/balanced-binary-tree | +| 补充题5. 手撕归并排序 | 2 | https://leetcode-cn.com/problems/undefined | +| 148. 排序链表 | 2 | https://leetcode-cn.com/problems/sort-list | +| 151. 翻转字符串里的单词 | 2 | https://leetcode-cn.com/problems/reverse-words-in-a-string | +| 108. 将有序数组转换为二叉搜索树 | 2 | https://leetcode-cn.com/problems/convert-sorted-array-to-binary-search-tree | +| 补充题6. 手撕堆排序 | 2 | https://leetcode-cn.com/problems/undefined | +| 862. 和至少为 K 的最短子数组 | 2 | https://leetcode-cn.com/problems/shortest-subarray-with-sum-at-least-k | +| 剑指 Offer 09. 用两个栈实现队列 | 2 | https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof | +| 8. 字符串转换整数 (atoi) | 2 | https://leetcode-cn.com/problems/string-to-integer-atoi | +| 2. 两数相加 | 2 | https://leetcode-cn.com/problems/add-two-numbers | +| 补充题14. 阿拉伯数字转中文数字 | 2 | https://leetcode-cn.com/problems/undefined | +| 48. 旋转图像 | 2 | https://leetcode-cn.com/problems/rotate-image | +| 155. 最小栈 | 2 | https://leetcode-cn.com/problems/min-stack | +| 61. 旋转链表 | 2 | https://leetcode-cn.com/problems/rotate-list | +| 468. 验证IP地址 | 2 | https://leetcode-cn.com/problems/validate-ip-address | +| 297. 二叉树的序列化与反序列化 | 2 | https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree | +| 补充题3. 求区间最小数乘区间和的最大值 | 2 | https://leetcode-cn.com/problems/undefined | +| 349. 两个数组的交集 | 2 | https://leetcode-cn.com/problems/intersection-of-two-arrays | +| 695. 岛屿的最大面积 | 2 | https://leetcode-cn.com/problems/max-area-of-island | +| 11. 盛最多水的容器 | 2 | https://leetcode-cn.com/problems/container-with-most-water | +| 739. 每日温度 | 2 | https://leetcode-cn.com/problems/daily-temperatures | +| 78. 子集 | 2 | https://leetcode-cn.com/problems/subsets | +| 23. 合并K个升序链表 | 2 | https://leetcode-cn.com/problems/merge-k-sorted-lists | +| 287. 寻找重复数 | 1 | https://leetcode-cn.com/problems/find-the-duplicate-number | +| 572. 另一个树的子树 | 1 | https://leetcode-cn.com/problems/subtree-of-another-tree | +| 977. 有序数组的平方 | 1 | https://leetcode-cn.com/problems/squares-of-a-sorted-array | +| 974. 和可被 K 整除的子数组 | 1 | https://leetcode-cn.com/problems/subarray-sums-divisible-by-k | +| 剑指 Offer 04. 二维数组中的查找 | 1 | https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof | +| 59. 螺旋矩阵 II | 1 | https://leetcode-cn.com/problems/spiral-matrix-ii | +| 1438. 绝对差不超过限制的最长连续子数组 | 1 | https://leetcode-cn.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit | +| 剑指 Offer 21. 调整数组顺序使奇数位于偶数前面 | 1 | https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof | +| 836. 矩形重叠 | 1 | https://leetcode-cn.com/problems/rectangle-overlap | +| 91. 解码方法 | 1 | https://leetcode-cn.com/problems/decode-ways | +| 179. 最大数 | 1 | https://leetcode-cn.com/problems/largest-number | +| 剑指 Offer 17. 打印从1到最大的n位数 | 1 | https://leetcode-cn.com/problems/da-yin-cong-1dao-zui-da-de-nwei-shu-lcof | +| 剑指 Offer 46. 把数字翻译成字符串 | 1 | https://leetcode-cn.com/problems/ba-shu-zi-fan-yi-cheng-zi-fu-chuan-lcof | +| 60. 排列序列 | 1 | https://leetcode-cn.com/problems/permutation-sequence | +| 104. 二叉树的最大深度 | 1 | https://leetcode-cn.com/problems/maximum-depth-of-binary-tree | +| 面试题 17.24. 最大子矩阵 | 1 | https://leetcode-cn.com/problems/max-submatrix-lcci | +| 547. 省份数量(原朋友圈) | 1 | https://leetcode-cn.com/problems/friend-circles | +| 剑指 Offer 51. 数组中的逆序对 | 1 | https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof | +| 补充题10. 36进制减法 | 1 | https://leetcode-cn.com/problems/undefined | +| 198. 打家劫舍 | 1 | https://leetcode-cn.com/problems/house-robber | +| 543. 二叉树的直径 | 1 | https://leetcode-cn.com/problems/diameter-of-binary-tree | +| 460. LFU缓存 | 1 | https://leetcode-cn.com/problems/lfu-cache | +| 1302. 层数最深叶子节点的和 | 1 | https://leetcode-cn.com/problems/deepest-leaves-sum | +| 189. 旋转数组 | 1 | https://leetcode-cn.com/problems/rotate-array | +| 361. 轰炸敌人 | 1 | https://leetcode-cn.com/problems/bomb-enemy | +| 704. 二分查找 | 1 | https://leetcode-cn.com/problems/binary-search | +| 127. 单词接龙 | 1 | https://leetcode-cn.com/problems/word-ladder | +| 96. 不同的二叉搜索树 | 1 | https://leetcode-cn.com/problems/unique-binary-search-trees | +| 16. 最接近的三数之和 | 1 | https://leetcode-cn.com/problems/3sum-closest | +| 10. 正则表达式匹配 | 1 | https://leetcode-cn.com/problems/regular-expression-matching | +| 120. 三角形最小路径和 | 1 | https://leetcode-cn.com/problems/triangle | +| 239. 滑动窗口最大值 | 1 | https://leetcode-cn.com/problems/sliding-window-maximum | +| 129. 求根节点到叶节点数字之和 | 1 | https://leetcode-cn.com/problems/sum-root-to-leaf-numbers | +| 1047. 删除字符串中的所有相邻重复项 | 1 | https://leetcode-cn.com/problems/remove-all-adjacent-duplicates-in-string | +| 剑指 Offer 55 - I. 二叉树的深度 | 1 | https://leetcode-cn.com/problems/er-cha-shu-de-shen-du-lcof | +| 面试题 08.05. 递归乘法 | 1 | https://leetcode-cn.com/problems/recursive-mulitply-lcci | +| 670. 最大交换 | 1 | https://leetcode-cn.com/problems/maximum-swap | +| 93. 复原IP地址 | 1 | https://leetcode-cn.com/problems/restore-ip-addresses | +| 405. 数字转换为十六进制数 | 1 | https://leetcode-cn.com/problems/convert-a-number-to-hexadecimal | +| 1420. 生成数组 | 1 | https://leetcode-cn.com/problems/build-array-where-you-can-find-the-maximum-exactly-k-comparisons | +| 14. 最长公共前缀 | 1 | https://leetcode-cn.com/problems/longest-common-prefix | +| 429. N 叉树的层序遍历 | 1 | https://leetcode-cn.com/problems/n-ary-tree-level-order-traversal | +| 93. 复原 IP 地址 | 1 | https://leetcode-cn.com/problems/restore-ip-addresses | +| 136. 只出现一次的数字 | 1 | https://leetcode-cn.com/problems/single-number | +| 394. 字符串解码 | 1 | https://leetcode-cn.com/problems/decode-string | +| 18. 四数之和 | 1 | https://leetcode-cn.com/problems/4sum | +| 329. 矩阵中的最长递增路径 | 1 | https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix | +| 191. 位1的个数 | 1 | https://leetcode-cn.com/problems/number-of-1-bits | +| 887. 鸡蛋掉落 | 1 | https://leetcode-cn.com/problems/super-egg-drop | +| 剑指 Offer 11. 旋转数组的最小数字 | 1 | https://leetcode-cn.com/problems/xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof | +| 153. 寻找旋转排序数组中的最小值 | 1 | https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array | +| 611. 有效三角形的个数 | 1 | https://leetcode-cn.com/problems/valid-triangle-number | +| 剑指 Offer 03. 数组中重复的数字 | 1 | https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof | +| 62. 不同路径 | 1 | https://leetcode-cn.com/problems/unique-paths | +| 322. 零钱兑换 | 1 | https://leetcode-cn.com/problems/coin-change | +| 31. 下一个排列 | 1 | https://leetcode-cn.com/problems/next-permutation | +| 765. 情侣牵手 | 1 | https://leetcode-cn.com/problems/couples-holding-hands | +| 77. 组合 | 1 | https://leetcode-cn.com/problems/combinations | +| 378. 有序矩阵中第 K 小的元素 | 1 | https://leetcode-cn.com/problems/kth-smallest-element-in-a-sorted-matrix | +| 19. 删除链表的倒数第N个节点 | 1 | https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list | +| 106. 从中序与后序遍历序列构造二叉树 | 1 | https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal | +| 剑指 Offer 33. 二叉搜索树的后序遍历序列 | 1 | https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof | +| 498. 对角线遍历 | 1 | https://leetcode-cn.com/problems/diagonal-traverse | +| 剑指 Offer 38. 字符串的排列 | 1 | https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcof | +| 103. 二叉树的锯齿形层序遍历 | 1 | https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal | +| 402. 移掉K位数字 | 1 | https://leetcode-cn.com/problems/remove-k-digits | +| 334. 递增的三元子序列 | 1 | https://leetcode-cn.com/problems/increasing-triplet-subsequence | +| 19. 删除链表的倒数第 N 个结点 | 1 | https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list | +| 429. N叉树的层序遍历 | 1 | https://leetcode-cn.com/problems/n-ary-tree-level-order-traversal | +| 213. 打家劫舍 II | 1 | https://leetcode-cn.com/problems/house-robber-ii | +| 剑指 Offer 45. 把数组排成最小的数 | 1 | https://leetcode-cn.com/problems/ba-shu-zu-pai-cheng-zui-xiao-de-shu-lcof | +| 347. 前 K 个高频元素 | 1 | https://leetcode-cn.com/problems/top-k-frequent-elements | +| 416. 分割等和子集 | 1 | https://leetcode-cn.com/problems/partition-equal-subset-sum | +| 207. 课程表 | 1 | https://leetcode-cn.com/problems/course-schedule | +| 871. 最低加油次数 | 1 | https://leetcode-cn.com/problems/minimum-number-of-refueling-stops | +| 763. 划分字母区间 | 1 | https://leetcode-cn.com/problems/partition-labels | +| 162. 寻找峰值 | 1 | https://leetcode-cn.com/problems/find-peak-element | +| 556. 下一个更大元素 III | 1 | https://leetcode-cn.com/problems/next-greater-element-iii | +| 662. 二叉树最大宽度 | 1 | https://leetcode-cn.com/problems/maximum-width-of-binary-tree | +| 617. 合并二叉树 | 1 | https://leetcode-cn.com/problems/merge-two-binary-trees | diff --git a/bytedance/test.md b/bytedance/test.md index 26f55c0..586d099 100644 --- a/bytedance/test.md +++ b/bytedance/test.md @@ -1,89 +1,103 @@ # 测试 +若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 |题目|出现次数|链接| |-|-|-| -|3. 无重复字符的最长子串|16|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| +|3. 无重复字符的最长子串|19|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| +|169. 多数元素|11|https://leetcode-cn.com/problems/majority-element| |20. 有效的括号|9|https://leetcode-cn.com/problems/valid-parentheses| -|169. 多数元素|7|https://leetcode-cn.com/problems/majority-element| -|206. 反转链表|7|https://leetcode-cn.com/problems/reverse-linked-list| -|415. 字符串相加|6|https://leetcode-cn.com/problems/add-strings| +|206. 反转链表|8|https://leetcode-cn.com/problems/reverse-linked-list| +|1. 两数之和|8|https://leetcode-cn.com/problems/two-sum| +|415. 字符串相加|7|https://leetcode-cn.com/problems/add-strings| +|25. K 个一组翻转链表|6|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| +|160. 相交链表|6|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| |78. 子集|5|https://leetcode-cn.com/problems/subsets| -|1. 两数之和|5|https://leetcode-cn.com/problems/two-sum| -|64. 最小路径和|4|https://leetcode-cn.com/problems/minimum-path-sum| +|5. 最长回文子串|5|https://leetcode-cn.com/problems/longest-palindromic-substring| +|83. 删除排序链表中的重复元素|5|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list| +|94. 二叉树的中序遍历|5|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| +|1143. 最长公共子序列|4|https://leetcode-cn.com/problems/longest-common-subsequence| +|468. 验证IP地址|4|https://leetcode-cn.com/problems/validate-ip-address| +|141. 环形链表|4|https://leetcode-cn.com/problems/linked-list-cycle| +|142. 环形链表 II|4|https://leetcode-cn.com/problems/linked-list-cycle-ii| |70. 爬楼梯|4|https://leetcode-cn.com/problems/climbing-stairs| -|94. 二叉树的中序遍历|4|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| -|25. K 个一组翻转链表|4|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| +|64. 最小路径和|4|https://leetcode-cn.com/problems/minimum-path-sum| +|179. 最大数|4|https://leetcode-cn.com/problems/largest-number| +|239. 滑动窗口最大值|4|https://leetcode-cn.com/problems/sliding-window-maximum| |39. 组合总和|4|https://leetcode-cn.com/problems/combination-sum| -|1143. 最长公共子序列|4|https://leetcode-cn.com/problems/longest-common-subsequence| -|179. 最大数|3|https://leetcode-cn.com/problems/largest-number| -|468. 验证IP地址|3|https://leetcode-cn.com/problems/validate-ip-address| -|239. 滑动窗口最大值|3|https://leetcode-cn.com/problems/sliding-window-maximum| +|718. 最长重复子数组|4|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| +|110. 平衡二叉树|4|https://leetcode-cn.com/problems/balanced-binary-tree| +|121. 买卖股票的最佳时机|3|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| +|26. 删除排序数组中的重复项|3|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array| +|15. 三数之和|3|https://leetcode-cn.com/problems/3sum| +|14. 最长公共前缀|3|https://leetcode-cn.com/problems/longest-common-prefix| |剑指 Offer 61. 扑克牌中的顺子|3|https://leetcode-cn.com/problems/bu-ke-pai-zhong-de-shun-zi-lcof| -|110. 平衡二叉树|3|https://leetcode-cn.com/problems/balanced-binary-tree| |62. 不同路径|3|https://leetcode-cn.com/problems/unique-paths| -|160. 相交链表|3|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| -|15. 三数之和|3|https://leetcode-cn.com/problems/3sum| -|141. 环形链表|3|https://leetcode-cn.com/problems/linked-list-cycle| -|125. 验证回文串|2|https://leetcode-cn.com/problems/valid-palindrome| -|26. 删除排序数组中的重复项|2|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array| -|242. 有效的字母异位词|2|https://leetcode-cn.com/problems/valid-anagram| -|剑指 Offer 10- II. 青蛙跳台阶问题|2|https://leetcode-cn.com/problems/qing-wa-tiao-tai-jie-wen-ti-lcof| -|剑指 Offer 21. 调整数组顺序使奇数位于偶数前面|2|https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof| -|5. 最长回文子串|2|https://leetcode-cn.com/problems/longest-palindromic-substring| -|718. 最长重复子数组|2|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| |146. LRU缓存机制|2|https://leetcode-cn.com/problems/lru-cache| -|83. 删除排序链表中的重复元素|2|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list| -|14. 最长公共前缀|2|https://leetcode-cn.com/problems/longest-common-prefix| -|704. 二分查找|2|https://leetcode-cn.com/problems/binary-search| +|470. 用 Rand7() 实现 Rand10()|2|https://leetcode-cn.com/problems/implement-rand10-using-rand7| +|56. 合并区间|2|https://leetcode-cn.com/problems/merge-intervals| +|剑指 Offer 10- II. 青蛙跳台阶问题|2|https://leetcode-cn.com/problems/qing-wa-tiao-tai-jie-wen-ti-lcof| +|151. 翻转字符串里的单词|2|https://leetcode-cn.com/problems/reverse-words-in-a-string| +|124. 二叉树中的最大路径和|2|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| +|21. 合并两个有序链表|2|https://leetcode-cn.com/problems/merge-two-sorted-lists| +|242. 有效的字母异位词|2|https://leetcode-cn.com/problems/valid-anagram| |88. 合并两个有序数组|2|https://leetcode-cn.com/problems/merge-sorted-array| |42. 接雨水|2|https://leetcode-cn.com/problems/trapping-rain-water| -|142. 环形链表 II|2|https://leetcode-cn.com/problems/linked-list-cycle-ii| |268. 缺失数字|2|https://leetcode-cn.com/problems/missing-number| +|125. 验证回文串|2|https://leetcode-cn.com/problems/valid-palindrome| |543. 二叉树的直径|2|https://leetcode-cn.com/problems/diameter-of-binary-tree| +|704. 二分查找|2|https://leetcode-cn.com/problems/binary-search| +|215. 数组中的第K个最大元素|2|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| |32. 最长有效括号|2|https://leetcode-cn.com/problems/longest-valid-parentheses| -|344. 反转字符串|1|https://leetcode-cn.com/problems/reverse-string| -|9. 回文数|1|https://leetcode-cn.com/problems/palindrome-number| -|680. 验证回文字符串 Ⅱ|1|https://leetcode-cn.com/problems/valid-palindrome-ii| +|剑指 Offer 21. 调整数组顺序使奇数位于偶数前面|2|https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof| +|122. 买卖股票的最佳时机 II|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| +|350. 两个数组的交集 II|1|https://leetcode-cn.com/problems/intersection-of-two-arrays-ii| |补充题1. 排序奇升偶降链表|1|https://mp.weixin.qq.com/s/377FfqvpY8NwMInhpoDgsw| -|796. 旋转字符串|1|https://leetcode-cn.com/problems/rotate-string| -|234. 回文链表|1|https://leetcode-cn.com/problems/palindrome-linked-list| -|124. 二叉树中的最大路径和|1|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| -|19. 删除链表的倒数第N个节点|1|https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list| -|498. 对角线遍历|1|https://leetcode-cn.com/problems/diagonal-traverse| -|443. 压缩字符串|1|https://leetcode-cn.com/problems/string-compression| -|76. 最小覆盖子串|1|https://leetcode-cn.com/problems/minimum-window-substring| -|79. 单词搜索|1|https://leetcode-cn.com/problems/word-search| -|300. 最长上升子序列|1|https://leetcode-cn.com/problems/longest-increasing-subsequence| +|958. 二叉树的完全性检验|1|https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree| +|9. 回文数|1|https://leetcode-cn.com/problems/palindrome-number| +|103. 二叉树的锯齿形层次遍历|1|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| +|557. 反转字符串中的单词 III|1|https://leetcode-cn.com/problems/reverse-words-in-a-string-iii| |22. 括号生成|1|https://leetcode-cn.com/problems/generate-parentheses| -|143. 重排链表|1|https://leetcode-cn.com/problems/reorder-list| -|51. N皇后|1|https://leetcode-cn.com/problems/n-queens| -|236. 二叉树的最近公共祖先|1|https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree| -|240. 搜索二维矩阵 II|1|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| -|121. 买卖股票的最佳时机|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| +|405. 数字转换为十六进制数|1|https://leetcode-cn.com/problems/convert-a-number-to-hexadecimal| +|459. 重复的子字符串|1|https://leetcode-cn.com/problems/repeated-substring-pattern| +|102. 二叉树的层序遍历|1|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| +|200. 岛屿数量|1|https://leetcode-cn.com/problems/number-of-islands| |剑指 Offer 22. 链表中倒数第k个节点|1|https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof| +|143. 重排链表|1|https://leetcode-cn.com/problems/reorder-list| +|剑指 Offer 27. 二叉树的镜像|1|https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof| +|补充题5. 手撕归并排序|1|https://leetcode-cn.com/problems/sort-an-array| +|19. 删除链表的倒数第N个节点|1|https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list| +|226. 翻转二叉树|1|https://leetcode-cn.com/problems/invert-binary-tree| +|144. 二叉树的前序遍历|1|https://leetcode-cn.com/problems/binary-tree-preorder-traversal| +|93. 复原IP地址|1|https://leetcode-cn.com/problems/restore-ip-addresses| +|92. 反转链表 II|1|https://leetcode-cn.com/problems/reverse-linked-list-ii| +|191. 位1的个数|1|https://leetcode-cn.com/problems/number-of-1-bits| +|33. 搜索旋转排序数组|1|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| +|213. 打家劫舍 II|1|https://leetcode-cn.com/problems/house-robber-ii| +|8. 字符串转换整数 (atoi)|1|https://leetcode-cn.com/problems/string-to-integer-atoi| +|11. 盛最多水的容器|1|https://leetcode-cn.com/problems/container-with-most-water| +|344. 反转字符串|1|https://leetcode-cn.com/problems/reverse-string| |41. 缺失的第一个正数|1|https://leetcode-cn.com/problems/first-missing-positive| -|113. 路径总和 II|1|https://leetcode-cn.com/problems/path-sum-ii| -|122. 买卖股票的最佳时机 II|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| -|200. 岛屿数量|1|https://leetcode-cn.com/problems/number-of-islands| +|498. 对角线遍历|1|https://leetcode-cn.com/problems/diagonal-traverse| +|162. 寻找峰值|1|https://leetcode-cn.com/problems/find-peak-element| +|234. 回文链表|1|https://leetcode-cn.com/problems/palindrome-linked-list| |49. 字母异位词分组|1|https://leetcode-cn.com/problems/group-anagrams| -|557. 反转字符串中的单词 III|1|https://leetcode-cn.com/problems/reverse-words-in-a-string-iii| +|79. 单词搜索|1|https://leetcode-cn.com/problems/word-search| +|76. 最小覆盖子串|1|https://leetcode-cn.com/problems/minimum-window-substring| +|232. 用栈实现队列|1|https://leetcode-cn.com/problems/implement-queue-using-stacks| +|97. 交错字符串|1|https://leetcode-cn.com/problems/interleaving-string| |198. 打家劫舍|1|https://leetcode-cn.com/problems/house-robber| -|56. 合并区间|1|https://leetcode-cn.com/problems/merge-intervals| -|151. 翻转字符串里的单词|1|https://leetcode-cn.com/problems/reverse-words-in-a-string| |862. 和至少为 K 的最短子数组|1|https://leetcode-cn.com/problems/shortest-subarray-with-sum-at-least-k| -|53. 最大子序和|1|https://leetcode-cn.com/problems/maximum-subarray| -|103. 二叉树的锯齿形层次遍历|1|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| -|剑指 Offer 39. 数组中出现次数超过一半的数字|1|https://leetcode-cn.com/problems/shu-zu-zhong-chu-xian-ci-shu-chao-guo-yi-ban-de-shu-zi-lcof| -|215. 数组中的第K个最大元素|1|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| -|97. 交错字符串|1|https://leetcode-cn.com/problems/interleaving-string| -|21. 合并两个有序链表|1|https://leetcode-cn.com/problems/merge-two-sorted-lists| -|102. 二叉树的层序遍历|1|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| -|162. 寻找峰值|1|https://leetcode-cn.com/problems/find-peak-element| +|240. 搜索二维矩阵 II|1|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| +|224. 基本计算器|1|https://leetcode-cn.com/problems/basic-calculator| |154. 寻找旋转排序数组中的最小值 II|1|https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array-ii| -|405. 数字转换为十六进制数|1|https://leetcode-cn.com/problems/convert-a-number-to-hexadecimal| -|958. 二叉树的完全性检验|1|https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree| -|350. 两个数组的交集 II|1|https://leetcode-cn.com/problems/intersection-of-two-arrays-ii| -|232. 用栈实现队列|1|https://leetcode-cn.com/problems/implement-queue-using-stacks| -|31. 下一个排列|1|https://leetcode-cn.com/problems/next-permutation| -|459. 重复的子字符串|1|https://leetcode-cn.com/problems/repeated-substring-pattern| +|113. 路径总和 II|1|https://leetcode-cn.com/problems/path-sum-ii| +|443. 压缩字符串|1|https://leetcode-cn.com/problems/string-compression| +|680. 验证回文字符串 Ⅱ|1|https://leetcode-cn.com/problems/valid-palindrome-ii| +|53. 最大子序和|1|https://leetcode-cn.com/problems/maximum-subarray| |1201. 丑数 III|1|https://leetcode-cn.com/problems/ugly-number-iii| -|224. 基本计算器|1|https://leetcode-cn.com/problems/basic-calculator| \ No newline at end of file +|300. 最长上升子序列|1|https://leetcode-cn.com/problems/longest-increasing-subsequence| +|31. 下一个排列|1|https://leetcode-cn.com/problems/next-permutation| +|796. 旋转字符串|1|https://leetcode-cn.com/problems/rotate-string| +|51. N皇后|1|https://leetcode-cn.com/problems/n-queens| +|剑指 Offer 39. 数组中出现次数超过一半的数字|1|https://leetcode-cn.com/problems/shu-zu-zhong-chu-xian-ci-shu-chao-guo-yi-ban-de-shu-zi-lcof| +|236. 二叉树的最近公共祖先|1|https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree| +Software Engineer \ No newline at end of file