diff --git a/README.md b/README.md index 1aa63a4..8e53ecc 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # LeetcodeTop 本仓库用于汇总互联网公司技术岗考察Leetcode题目的热度:fire:,帮助同学们更加有针对性地准备面试。 - **为方便大家高效检索题目,推出CodeTop网站,支持公司+部门+岗位自由组合查询**[https://codetop.cc](https://codetop.cc) + 我最近开发的**CodeTop网站**([https://codetop.cc](https://codetop.cc)),支持按**公司**、**部门**、**岗位**组合查询,方便大家高效检索题目。 相对于力扣官方企业题库,CodeTop有以下优点 @@ -13,20 +13,34 @@ 注1:若想按部门查询题目,请在[CodeTop网站](http://codetop.cc)或CodeTop小程序查看
注2:为保证数据真实可信,[issues](https://github.com/afatcoder/LeetcodeTop/issues)中会声名了所有涉及的原文链接 -:speech_balloon:面试交流:若想加大厂面试交流群,请在「一个搬砖的胖子」公众号点击「加交流群」,添加我的微信后即被拉群 +:speech_balloon:面试交流:若想加入大厂面试真题交流群,请在公众号「一个搬砖的胖子」回复「加群」,添加我的微信后即被拉群 + +:book: 面经导航:我将汇总过的几千篇面经整理成大厂面经导航.xlsx,方便大家按公司、部门、岗位定位面经原文链接。目前已包括字节跳动、腾讯、美团等公司。公众号「一个搬砖的胖子」后台回复公司名称即可获取下载链接。 ![公众号:一个搬砖的胖子](https://github.com/afatcoder/LeetcodeTop/blob/master/img/wechat.png) -:link:友情链接:我的好友鱼皮开发了个编程导航网站,旨在发现优质编程学习资源,提高编程学习效率。这是他的仓库[code-nav](https://github.com/liyupi/code-nav),大家可以去看看,欢迎Star⭐ :information_source:数据来源:牛客网笔经面经,题目的原始文章链接已放在[issues](https://github.com/afatcoder/LeetcodeTop/issues)中 -:warning:若转载文章,需注明本仓库地址 +:warning:使用本仓库的频度数据或转载文章,需注明本仓库地址!侵权必究! -## 微软(更新至牛客4.28日的面经) + +## 字节跳动(更新至牛客2021.4.30的面经) +
+按岗位分类 + + [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) +
+ +## 微软(更新至牛客2021.4.30的面经) - [SDE](https://github.com/afatcoder/LeetcodeTop/blob/master/microsoft/SDE.md) -## 美团(更新至牛客2021.4.23号面经) +## 美团(更新至牛客2021.4.23面经)
按岗位分类 @@ -38,7 +52,7 @@ - [数据开发](https://github.com/afatcoder/LeetcodeTop/blob/master/meituan/data.md)
-## 腾讯(更新至牛客21.4.12日的面经) +## 腾讯(更新至牛客2021.4.12的面经)
按岗位分类 @@ -49,18 +63,6 @@ - [测试](https://github.com/afatcoder/LeetcodeTop/blob/master/tencent/test.md)
-## 字节跳动(更新至牛客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) -
- ## 猿辅导(更新至牛客3.5日的面经)
按岗位分类 diff --git a/bytedance/algorithm.md b/bytedance/algorithm.md index f622b2d..52bc606 100644 --- a/bytedance/algorithm.md +++ b/bytedance/algorithm.md @@ -1,101 +1,113 @@ # 算法 -若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 +我开发的[CodeTop题库](https://codetop.cc)可以按照部门、难度筛选,比markdown更方便查询高频题 + |题目|出现次数|链接| |-|-|-| +|72. 编辑距离|8|https://leetcode-cn.com/problems/edit-distance| |300. 最长上升子序列|6|https://leetcode-cn.com/problems/longest-increasing-subsequence| -|72. 编辑距离|6|https://leetcode-cn.com/problems/edit-distance| +|103. 二叉树的锯齿形层次遍历|5|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| |215. 数组中的第K个最大元素|4|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| +|33. 搜索旋转排序数组|3|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| +|200. 岛屿数量|3|https://leetcode-cn.com/problems/number-of-islands| +|4. 寻找两个正序数组的中位数|3|https://leetcode-cn.com/problems/median-of-two-sorted-arrays| |240. 搜索二维矩阵 II|3|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| +|102. 二叉树的层序遍历|3|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| |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| -|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| -|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| +|15. 三数之和|3|https://leetcode-cn.com/problems/3sum| +|394. 字符串解码|3|https://leetcode-cn.com/problems/decode-string| |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| -|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| +|3. 无重复字符的最长子串|2|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| |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| |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| -|面试题 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| +|695. 岛屿的最大面积|2|https://leetcode-cn.com/problems/max-area-of-island| +|105. 从前序与中序遍历序列构造二叉树|2|https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal| +|88. 合并两个有序数组|2|https://leetcode-cn.com/problems/merge-sorted-array| +|152. 乘积最大子数组|2|https://leetcode-cn.com/problems/maximum-product-subarray| +|70. 爬楼梯|2|https://leetcode-cn.com/problems/climbing-stairs| +|49. 字母异位词分组|2|https://leetcode-cn.com/problems/group-anagrams| +|209. 长度最小的子数组|2|https://leetcode-cn.com/problems/minimum-size-subarray-sum| +|48. 旋转图像|2|https://leetcode-cn.com/problems/rotate-image| +|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| +|46. 全排列|2|https://leetcode-cn.com/problems/permutations| +|剑指 Offer 51. 数组中的逆序对|2|https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof| +|143. 重排链表|2|https://leetcode-cn.com/problems/reorder-list| +|239. 滑动窗口最大值|2|https://leetcode-cn.com/problems/sliding-window-maximum| +|238. 除自身以外数组的乘积|2|https://leetcode-cn.com/problems/product-of-array-except-self| +|121. 买卖股票的最佳时机|2|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| +|补充题4. 手撕快速排序|2|https://leetcode-cn.com/problems/sort-an-array| +|415. 字符串相加|2|https://leetcode-cn.com/problems/add-strings| +|69. x 的平方根|2|https://leetcode-cn.com/problems/sqrtx| |104. 二叉树的最大深度|1|https://leetcode-cn.com/problems/maximum-depth-of-binary-tree| -|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| -|152. 乘积最大子数组|1|https://leetcode-cn.com/problems/maximum-product-subarray| -|518. 零钱兑换 II|1|https://leetcode-cn.com/problems/coin-change-2| -|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| -|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| -|62. 不同路径|1|https://leetcode-cn.com/problems/unique-paths| -|50. Pow(x, n)|1|https://leetcode-cn.com/problems/powx-n| +|297. 二叉树的序列化与反序列化|1|https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree| +|814. 二叉树剪枝|1|https://leetcode-cn.com/problems/binary-tree-pruning| +|445. 两数相加 II|1|https://leetcode-cn.com/problems/add-two-numbers-ii| |2. 两数相加|1|https://leetcode-cn.com/problems/add-two-numbers| +|62. 不同路径|1|https://leetcode-cn.com/problems/unique-paths| +|63. 不同路径 II|1|https://leetcode-cn.com/problems/unique-paths-ii| +|509. 斐波那契数|1|https://leetcode-cn.com/problems/fibonacci-number| +|128. 最长连续序列|1|https://leetcode-cn.com/problems/longest-consecutive-sequence| +|20. 有效的括号|1|https://leetcode-cn.com/problems/valid-parentheses| +|206. 反转链表|1|https://leetcode-cn.com/problems/reverse-linked-list| +|264. 丑数 II|1|https://leetcode-cn.com/problems/ugly-number-ii| +|437. 路径总和 III|1|https://leetcode-cn.com/problems/path-sum-iii| +|560. 和为K的子数组|1|https://leetcode-cn.com/problems/subarray-sum-equals-k| +|169. 多数元素|1|https://leetcode-cn.com/problems/majority-element| +|142. 环形链表 II|1|https://leetcode-cn.com/problems/linked-list-cycle-ii| +|255. 验证前序遍历序列二叉搜索树|1|https://leetcode-cn.com/problems/verify-preorder-sequence-in-binary-search-tree| +|剑指 Offer 09. 用两个栈实现队列|1|https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof| +|124. 二叉树中的最大路径和|1|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| +|剑指 Offer 54. 二叉搜索树的第k大节点|1|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof| +|518. 零钱兑换 II|1|https://leetcode-cn.com/problems/coin-change-2| +|剑指 Offer 36. 二叉搜索树与双向链表|1|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof| +|50. Pow(x, n)|1|https://leetcode-cn.com/problems/powx-n| |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| -|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 +|1363. 形成三的最大倍数|1|https://leetcode-cn.com/problems/largest-multiple-of-three| +|376. 摆动序列|1|https://leetcode-cn.com/problems/wiggle-subsequence| +|25. K 个一组翻转链表|1|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| +|1143. 最长公共子序列|1|https://leetcode-cn.com/problems/longest-common-subsequence| +|32. 最长有效括号|1|https://leetcode-cn.com/problems/longest-valid-parentheses| +|718. 最长重复子数组|1|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| +|440. 字典序的第K小数字|1|https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order| +|334. 递增的三元子序列|1|https://leetcode-cn.com/problems/increasing-triplet-subsequence| +|582. 杀死进程|1|https://leetcode-cn.com/problems/kill-process| +|面试题 16.03. 交点|1|https://leetcode-cn.com/problems/intersection-lcci| +|96. 不同的二叉搜索树|1|https://leetcode-cn.com/problems/unique-binary-search-trees| +|41. 缺失的第一个正数|1|https://leetcode-cn.com/problems/first-missing-positive| +|403. 青蛙过河|1|https://leetcode-cn.com/problems/frog-jump| +|129. 求根到叶子节点数字之和|1|https://leetcode-cn.com/problems/sum-root-to-leaf-numbers| +|726. 原子的数量|1|https://leetcode-cn.com/problems/number-of-atoms| +|剑指 Offer 10- I. 斐波那契数列|1|https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof| +|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| +|42. 接雨水|1|https://leetcode-cn.com/problems/trapping-rain-water| +|306. 累加数|1|https://leetcode-cn.com/problems/additive-number| +|98. 验证二叉搜索树|1|https://leetcode-cn.com/problems/validate-binary-search-tree| +|221. 最大正方形|1|https://leetcode-cn.com/problems/maximal-square| +|227. 基本计算器 II|1|https://leetcode-cn.com/problems/basic-calculator-ii| +|1505. 最多 K 次交换相邻数位后得到的最小整数|1|https://leetcode-cn.com/problems/minimum-possible-integer-after-at-most-k-adjacent-swaps-on-digits| +|632. 最小区间|1|https://leetcode-cn.com/problems/smallest-range-covering-elements-from-k-lists| +|871. 最低加油次数|1|https://leetcode-cn.com/problems/minimum-number-of-refueling-stops| +|107. 二叉树的层次遍历 II|1|https://leetcode-cn.com/problems/binary-tree-level-order-traversal-ii| +|407. 接雨水 II|1|https://leetcode-cn.com/problems/trapping-rain-water-ii| +|199. 二叉树的右视图|1|https://leetcode-cn.com/problems/binary-tree-right-side-view| +|84. 柱状图中最大的矩形|1|https://leetcode-cn.com/problems/largest-rectangle-in-histogram| +|74. 搜索二维矩阵|1|https://leetcode-cn.com/problems/search-a-2d-matrix| +|329. 矩阵中的最长递增路径|1|https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix| +|172. 阶乘后的零|1|https://leetcode-cn.com/problems/factorial-trailing-zeroes| +|153. 寻找旋转排序数组中的最小值|1|https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array| +|432. 全 O(1) 的数据结构|1|https://leetcode-cn.com/problems/all-oone-data-structure| +|470. 用 Rand7() 实现 Rand10()|1|https://leetcode-cn.com/problems/implement-rand10-using-rand7| +|164. 最大间距|1|https://leetcode-cn.com/problems/maximum-gap| +|94. 二叉树的中序遍历|1|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| +|剑指 Offer 62. 圆圈中最后剩下的数字|1|https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof| \ No newline at end of file diff --git a/bytedance/backend.md b/bytedance/backend.md index 71dd8cc..12bed0a 100644 --- a/bytedance/backend.md +++ b/bytedance/backend.md @@ -1,145 +1,163 @@ # 后端 -若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 +我开发的[CodeTop题库](https://codetop.cc)可以按照部门、难度筛选,比markdown更方便查询高频题 + |题目|出现次数|链接| |-|-|-| -|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| +|25. K 个一组翻转链表|54|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| +|3. 无重复字符的最长子串|52|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| +|215. 数组中的第K个最大元素|47|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| +|103. 二叉树的锯齿形层次遍历|45|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| +|146. LRU缓存机制|45|https://leetcode-cn.com/problems/lru-cache| +|206. 反转链表|43|https://leetcode-cn.com/problems/reverse-linked-list| +|15. 三数之和|39|https://leetcode-cn.com/problems/3sum| +|121. 买卖股票的最佳时机|38|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| +|160. 相交链表|28|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| +|236. 二叉树的最近公共祖先|28|https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree| +|42. 接雨水|26|https://leetcode-cn.com/problems/trapping-rain-water| +|33. 搜索旋转排序数组|24|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| +|199. 二叉树的右视图|23|https://leetcode-cn.com/problems/binary-tree-right-side-view| +|23. 合并K个排序链表|21|https://leetcode-cn.com/problems/merge-k-sorted-lists| +|31. 下一个排列|21|https://leetcode-cn.com/problems/next-permutation| +|143. 重排链表|21|https://leetcode-cn.com/problems/reorder-list| +|69. x 的平方根|20|https://leetcode-cn.com/problems/sqrtx| +|21. 合并两个有序链表|20|https://leetcode-cn.com/problems/merge-two-sorted-lists| +|105. 从前序与中序遍历序列构造二叉树|19|https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal| +|54. 螺旋矩阵|19|https://leetcode-cn.com/problems/spiral-matrix| +|92. 反转链表 II|19|https://leetcode-cn.com/problems/reverse-linked-list-ii| +|124. 二叉树中的最大路径和|17|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| +|200. 岛屿数量|17|https://leetcode-cn.com/problems/number-of-islands| +|300. 最长上升子序列|17|https://leetcode-cn.com/problems/longest-increasing-subsequence| +|1. 两数之和|16|https://leetcode-cn.com/problems/two-sum| +|补充题1. 排序奇升偶降链表|16|https://mp.weixin.qq.com/s/377FfqvpY8NwMInhpoDgsw| +|155. 最小栈|15|https://leetcode-cn.com/problems/min-stack| +|101. 对称二叉树|14|https://leetcode-cn.com/problems/symmetric-tree| +|46. 全排列|14|https://leetcode-cn.com/problems/permutations| +|41. 缺失的第一个正数|13|https://leetcode-cn.com/problems/first-missing-positive| +|98. 验证二叉搜索树|13|https://leetcode-cn.com/problems/validate-binary-search-tree| +|76. 最小覆盖子串|13|https://leetcode-cn.com/problems/minimum-window-substring| |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| -|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| +|518. 零钱兑换 II|12|https://leetcode-cn.com/problems/coin-change-2| +|322. 零钱兑换|12|https://leetcode-cn.com/problems/coin-change| +|20. 有效的括号|12|https://leetcode-cn.com/problems/valid-parentheses| +|958. 二叉树的完全性检验|12|https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree| +|122. 买卖股票的最佳时机 II|12|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| +|148. 排序链表|12|https://leetcode-cn.com/problems/sort-list| +|48. 旋转图像|12|https://leetcode-cn.com/problems/rotate-image| +|39. 组合总和|12|https://leetcode-cn.com/problems/combination-sum| +|470. 用 Rand7() 实现 Rand10()|12|https://leetcode-cn.com/problems/implement-rand10-using-rand7| +|补充题2. 圆环回原点问题|12|https://mp.weixin.qq.com/s/VnGFEWHeD3nh1n9JSDkVUg| +|2. 两数相加|11|https://leetcode-cn.com/problems/add-two-numbers| +|198. 打家劫舍|11|https://leetcode-cn.com/problems/house-robber| +|232. 用栈实现队列|11|https://leetcode-cn.com/problems/implement-queue-using-stacks| +|102. 二叉树的层序遍历|10|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| |415. 字符串相加|10|https://leetcode-cn.com/problems/add-strings| -|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| +|162. 寻找峰值|10|https://leetcode-cn.com/problems/find-peak-element| +|32. 最长有效括号|10|https://leetcode-cn.com/problems/longest-valid-parentheses| |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| +|5. 最长回文子串|10|https://leetcode-cn.com/problems/longest-palindromic-substring| +|53. 最大子序和|9|https://leetcode-cn.com/problems/maximum-subarray| +|83. 删除排序链表中的重复元素|9|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list| +|88. 合并两个有序数组|9|https://leetcode-cn.com/problems/merge-sorted-array| +|543. 二叉树的直径|9|https://leetcode-cn.com/problems/diameter-of-binary-tree| +|113. 路径总和 II|9|https://leetcode-cn.com/problems/path-sum-ii| +|94. 二叉树的中序遍历|9|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| +|128. 最长连续序列|8|https://leetcode-cn.com/problems/longest-consecutive-sequence| +|22. 括号生成|8|https://leetcode-cn.com/problems/generate-parentheses| |24. 两两交换链表中的节点|8|https://leetcode-cn.com/problems/swap-nodes-in-pairs| -|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| +|93. 复原IP地址|8|https://leetcode-cn.com/problems/restore-ip-addresses| +|739. 每日温度|8|https://leetcode-cn.com/problems/daily-temperatures| +|79. 单词搜索|8|https://leetcode-cn.com/problems/word-search| +|补充题4. 手撕快速排序|8|https://leetcode-cn.com/problems/sort-an-array| +|补充题9. 36进制加法|8|https://mp.weixin.qq.com/s/bgD1Q5lc92mX7RNS1L65qA| +|70. 爬楼梯|7|https://leetcode-cn.com/problems/climbing-stairs| +|8. 字符串转换整数 (atoi)|7|https://leetcode-cn.com/problems/string-to-integer-atoi| +|19. 删除链表的倒数第N个节点|7|https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list| +|114. 二叉树展开为链表|7|https://leetcode-cn.com/problems/flatten-binary-tree-to-linked-list| +|240. 搜索二维矩阵 II|7|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| +|78. 子集|7|https://leetcode-cn.com/problems/subsets| +|82. 删除排序链表中的重复元素 II|7|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii| +|230. 二叉搜索树中第K小的元素|6|https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst| |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| +|221. 最大正方形|6|https://leetcode-cn.com/problems/maximal-square| |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| -|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| +|224. 基本计算器|6|https://leetcode-cn.com/problems/basic-calculator| |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| +|226. 翻转二叉树|6|https://leetcode-cn.com/problems/invert-binary-tree| +|862. 和至少为 K 的最短子数组|6|https://leetcode-cn.com/problems/shortest-subarray-with-sum-at-least-k| |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| +|11. 盛最多水的容器|6|https://leetcode-cn.com/problems/container-with-most-water| |补充题7. 木头切割问题|6|https://mp.weixin.qq.com/s/o-1VJO2TQZjC5ROmV7CReA| -|70. 爬楼梯|5|https://leetcode-cn.com/problems/climbing-stairs| +|556. 下一个更大元素 III|6|https://leetcode-cn.com/problems/next-greater-element-iii| +|剑指 Offer 54. 二叉搜索树的第k大节点|5|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof| |108. 将有序数组转换为二叉搜索树|5|https://leetcode-cn.com/problems/convert-sorted-array-to-binary-search-tree| -|128. 最长连续序列|5|https://leetcode-cn.com/problems/longest-consecutive-sequence| +|112. 路径总和|5|https://leetcode-cn.com/problems/path-sum| +|1143. 最长公共子序列|5|https://leetcode-cn.com/problems/longest-common-subsequence| +|297. 二叉树的序列化与反序列化|5|https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree| +|560. 和为K的子数组|5|https://leetcode-cn.com/problems/subarray-sum-equals-k| |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| +|421. 数组中两个数的最大异或值|5|https://leetcode-cn.com/problems/maximum-xor-of-two-numbers-in-an-array| +|129. 求根到叶子节点数字之和|5|https://leetcode-cn.com/problems/sum-root-to-leaf-numbers| +|135. 分发糖果|5|https://leetcode-cn.com/problems/candy| |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| +|209. 长度最小的子数组|5|https://leetcode-cn.com/problems/minimum-size-subarray-sum| +|91. 解码方法|5|https://leetcode-cn.com/problems/decode-ways| +|718. 最长重复子数组|5|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| +|补充题23. 检测循环依赖|5|https://mp.weixin.qq.com/s/q6AhBt6MX2RL_HNZc8cYKQ| +|328. 奇偶链表|4|https://leetcode-cn.com/problems/odd-even-linked-list| +|460. LFU缓存|4|https://leetcode-cn.com/problems/lfu-cache| |剑指 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| +|1047. 删除字符串中的所有相邻重复项|4|https://leetcode-cn.com/problems/remove-all-adjacent-duplicates-in-string| +|169. 多数元素|4|https://leetcode-cn.com/problems/majority-element| +|4. 寻找两个正序数组的中位数|4|https://leetcode-cn.com/problems/median-of-two-sorted-arrays| +|456. 132模式|4|https://leetcode-cn.com/problems/132-pattern| |528. 按权重随机选择|4|https://leetcode-cn.com/problems/random-pick-with-weight| -|11. 盛最多水的容器|4|https://leetcode-cn.com/problems/container-with-most-water| +|239. 滑动窗口最大值|4|https://leetcode-cn.com/problems/sliding-window-maximum| +|1095. 山脉数组中查找目标值|4|https://leetcode-cn.com/problems/find-in-mountain-array| +|59. 螺旋矩阵 II|4|https://leetcode-cn.com/problems/spiral-matrix-ii| +|153. 寻找旋转排序数组中的最小值|4|https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array| |补充题3. 求区间最小数乘区间和的最大值|4|https://mp.weixin.qq.com/s/ABNN4lJpvttulwWaUTgYZQ| +|剑指 Offer 61. 扑克牌中的顺子|3|https://leetcode-cn.com/problems/bu-ke-pai-zhong-de-shun-zi-lcof| |977. 有序数组的平方|3|https://leetcode-cn.com/problems/squares-of-a-sorted-array| -|1143. 最长公共子序列|3|https://leetcode-cn.com/problems/longest-common-subsequence| -|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| +|283. 移动零|3|https://leetcode-cn.com/problems/move-zeroes| +|166. 分数到小数|3|https://leetcode-cn.com/problems/fraction-to-recurring-decimal| +|264. 丑数 II|3|https://leetcode-cn.com/problems/ugly-number-ii| +|62. 不同路径|3|https://leetcode-cn.com/problems/unique-paths| |剑指 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| -|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| +|722. 删除注释|3|https://leetcode-cn.com/problems/remove-comments| +|72. 编辑距离|3|https://leetcode-cn.com/problems/edit-distance| |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| +|165. 比较版本号|3|https://leetcode-cn.com/problems/compare-version-numbers| +|补充题6. 手撕堆排序|3|https://leetcode-cn.com/problems/sort-an-array| +|887. 鸡蛋掉落|3|https://leetcode-cn.com/problems/super-egg-drop| +|106. 从中序与后序遍历序列构造二叉树|3|https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal| +|498. 对角线遍历|3|https://leetcode-cn.com/problems/diagonal-traverse| +|763. 划分字母区间|3|https://leetcode-cn.com/problems/partition-labels| +|354. 俄罗斯套娃信封问题|3|https://leetcode-cn.com/problems/russian-doll-envelopes| +|剑指 Offer 53 - I. 在排序数组中查找数字 I|3|https://leetcode-cn.com/problems/zai-pai-xu-shu-zu-zhong-cha-zhao-shu-zi-lcof| +|767. 重构字符串|3|https://leetcode-cn.com/problems/reorganize-string| |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| |剑指 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| |剑指 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| |523. 连续的子数组和|2|https://leetcode-cn.com/problems/continuous-subarray-sum| @@ -149,42 +167,49 @@ |394. 字符串解码|2|https://leetcode-cn.com/problems/decode-string| |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| +|895. 最大频率栈|2|https://leetcode-cn.com/problems/maximum-frequency-stack| |145. 二叉树的后序遍历|2|https://leetcode-cn.com/problems/binary-tree-postorder-traversal| |398. 随机数索引|2|https://leetcode-cn.com/problems/random-pick-index| |45. 跳跃游戏 II|2|https://leetcode-cn.com/problems/jump-game-ii| +|152. 乘积最大子数组|2|https://leetcode-cn.com/problems/maximum-product-subarray| |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| +|123. 买卖股票的最佳时机 III|2|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii| |147. 对链表进行插入排序|2|https://leetcode-cn.com/problems/insertion-sort-list| |785. 判断二分图|2|https://leetcode-cn.com/problems/is-graph-bipartite| -|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| +|295. 数据流的中位数|2|https://leetcode-cn.com/problems/find-median-from-data-stream| +|144. 二叉树的前序遍历|2|https://leetcode-cn.com/problems/binary-tree-preorder-traversal| |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| +|136. 只出现一次的数字|2|https://leetcode-cn.com/problems/single-number| +|43. 字符串相乘|2|https://leetcode-cn.com/problems/multiply-strings| |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| +|922. 按奇偶排序数组 II|2|https://leetcode-cn.com/problems/sort-array-by-parity-ii| |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| +|60. 第k个排列|2|https://leetcode-cn.com/problems/permutation-sequence| |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|| +|补充题10. 36进制减法|2|https://mp.weixin.qq.com/s/_A2Ctn3kDa21NPlpF9y-hg| |补充题5. 手撕归并排序|2|https://leetcode-cn.com/problems/sort-an-array| -|556. 下一个更大元素 III|2|https://leetcode-cn.com/problems/next-greater-element-iii| +|189. 旋转数组|2|https://leetcode-cn.com/problems/rotate-array| +|74. 搜索二维矩阵|2|https://leetcode-cn.com/problems/search-a-2d-matrix| +|补充题14. 阿拉伯数字转中文数字|2|| |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| +|7. 整数反转|2|https://leetcode-cn.com/problems/reverse-integer| +|443. 压缩字符串|2|https://leetcode-cn.com/problems/string-compression| +|381. O(1) 时间插入、删除和获取随机元素 - 允许重复|2|https://leetcode-cn.com/problems/insert-delete-getrandom-o1-duplicates-allowed| |剑指 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| @@ -197,7 +222,6 @@ |100. 相同的树|1|https://leetcode-cn.com/problems/same-tree| |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| |剑指 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| @@ -215,23 +239,18 @@ |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| |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| |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| @@ -242,30 +261,21 @@ |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| @@ -274,11 +284,31 @@ |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 +|253. 会议室 II|1|https://leetcode-cn.com/problems/meeting-rooms-ii| +|386. 字典序排数|1|https://leetcode-cn.com/problems/lexicographical-numbers| +|面试题 03.03. 堆盘子|1|https://leetcode-cn.com/problems/stack-of-plates-lcci| +|331. 验证二叉树的前序序列化|1|https://leetcode-cn.com/problems/verify-preorder-serialization-of-a-binary-tree| +|剑指 Offer 28. 对称的二叉树|1|https://leetcode-cn.com/problems/dui-cheng-de-er-cha-shu-lcof| +|剑指 Offer 68 - II. 二叉树的最近公共祖先|1|https://leetcode-cn.com/problems/er-cha-shu-de-zui-jin-gong-gong-zu-xian-lcof| +|47. 全排列 II|1|https://leetcode-cn.com/problems/permutations-ii| +|848. 字母移位|1|https://leetcode-cn.com/problems/shifting-letters| +|6. Z 字形变换|1|https://leetcode-cn.com/problems/zigzag-conversion| +|990. 等式方程的可满足性|1|https://leetcode-cn.com/problems/satisfiability-of-equality-equations| +|567. 字符串的排列|1|https://leetcode-cn.com/problems/permutation-in-string| +|496. 下一个更大元素 I|1|https://leetcode-cn.com/problems/next-greater-element-i| +|967. 连续差相同的数字|1|https://leetcode-cn.com/problems/numbers-with-same-consecutive-differences| +|1405. 最长快乐字符串|1|https://leetcode-cn.com/problems/longest-happy-string| +|85. 最大矩形|1|https://leetcode-cn.com/problems/maximal-rectangle| +|1353. 最多可以参加的会议数目|1|https://leetcode-cn.com/problems/maximum-number-of-events-that-can-be-attended| +|81. 搜索旋转排序数组 II|1|https://leetcode-cn.com/problems/search-in-rotated-sorted-array-ii| +|1574. 删除最短的子数组使剩余数组有序|1|https://leetcode-cn.com/problems/shortest-subarray-to-be-removed-to-make-array-sorted| +|44. 通配符匹配|1|https://leetcode-cn.com/problems/wildcard-matching| +|949. 给定数字能组成的最大时间|1|https://leetcode-cn.com/problems/largest-time-for-given-digits| +|703. 数据流中的第K大元素|1|https://leetcode-cn.com/problems/kth-largest-element-in-a-stream| +|剑指 Offer 31. 栈的压入、弹出序列|1|https://leetcode-cn.com/problems/zhan-de-ya-ru-dan-chu-xu-lie-lcof| +|213. 打家劫舍 II|1|https://leetcode-cn.com/problems/house-robber-ii| \ No newline at end of file diff --git a/bytedance/client.md b/bytedance/client.md index 72e6b89..5adbfc4 100644 --- a/bytedance/client.md +++ b/bytedance/client.md @@ -1,77 +1,85 @@ # 客户端 -若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 +我开发的[CodeTop题库](https://codetop.cc)可以按照部门、难度筛选,比markdown更方便查询高频题 + |题目|出现次数|链接| |-|-|-| +|206. 反转链表|19|https://leetcode-cn.com/problems/reverse-linked-list| |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| +|215. 数组中的第K个最大元素|16|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| +|53. 最大子序和|15|https://leetcode-cn.com/problems/maximum-subarray| +|146. LRU缓存机制|14|https://leetcode-cn.com/problems/lru-cache| +|3. 无重复字符的最长子串|12|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| +|15. 三数之和|12|https://leetcode-cn.com/problems/3sum| +|1. 两数之和|12|https://leetcode-cn.com/problems/two-sum| +|21. 合并两个有序链表|10|https://leetcode-cn.com/problems/merge-two-sorted-lists| +|103. 二叉树的锯齿形层次遍历|10|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| +|236. 二叉树的最近公共祖先|9|https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree| +|121. 买卖股票的最佳时机|9|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| +|958. 二叉树的完全性检验|9|https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree| +|113. 路径总和 II|9|https://leetcode-cn.com/problems/path-sum-ii| +|102. 二叉树的层序遍历|9|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| |199. 二叉树的右视图|8|https://leetcode-cn.com/problems/binary-tree-right-side-view| -|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| +|105. 从前序与中序遍历序列构造二叉树|8|https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal| +|54. 螺旋矩阵|8|https://leetcode-cn.com/problems/spiral-matrix| +|232. 用栈实现队列|7|https://leetcode-cn.com/problems/implement-queue-using-stacks| +|56. 合并区间|7|https://leetcode-cn.com/problems/merge-intervals| |101. 对称二叉树|7|https://leetcode-cn.com/problems/symmetric-tree| -|232. 用栈实现队列|6|https://leetcode-cn.com/problems/implement-queue-using-stacks| +|415. 字符串相加|7|https://leetcode-cn.com/problems/add-strings| +|19. 删除链表的倒数第N个节点|7|https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list| +|41. 缺失的第一个正数|6|https://leetcode-cn.com/problems/first-missing-positive| +|112. 路径总和|6|https://leetcode-cn.com/problems/path-sum| +|142. 环形链表 II|6|https://leetcode-cn.com/problems/linked-list-cycle-ii| |144. 二叉树的前序遍历|6|https://leetcode-cn.com/problems/binary-tree-preorder-traversal| |543. 二叉树的直径|6|https://leetcode-cn.com/problems/diameter-of-binary-tree| |剑指 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| +|2. 两数相加|6|https://leetcode-cn.com/problems/add-two-numbers| +|4. 寻找两个正序数组的中位数|6|https://leetcode-cn.com/problems/median-of-two-sorted-arrays| |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| -|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| -|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| +|82. 删除排序链表中的重复元素 II|5|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii| +|165. 比较版本号|5|https://leetcode-cn.com/problems/compare-version-numbers| |344. 反转字符串|4|https://leetcode-cn.com/problems/reverse-string| +|88. 合并两个有序数组|4|https://leetcode-cn.com/problems/merge-sorted-array| +|94. 二叉树的中序遍历|4|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| +|226. 翻转二叉树|4|https://leetcode-cn.com/problems/invert-binary-tree| +|剑指 Offer 36. 二叉搜索树与双向链表|4|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof| |240. 搜索二维矩阵 II|4|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| |460. LFU缓存|4|https://leetcode-cn.com/problems/lfu-cache| |394. 字符串解码|4|https://leetcode-cn.com/problems/decode-string| |69. x 的平方根|4|https://leetcode-cn.com/problems/sqrtx| +|46. 全排列|4|https://leetcode-cn.com/problems/permutations| |189. 旋转数组|4|https://leetcode-cn.com/problems/rotate-array| -|82. 删除排序链表中的重复元素 II|4|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii| +|225. 用队列实现栈|4|https://leetcode-cn.com/problems/implement-stack-using-queues| |59. 螺旋矩阵 II|4|https://leetcode-cn.com/problems/spiral-matrix-ii| -|165. 比较版本号|4|https://leetcode-cn.com/problems/compare-version-numbers| -|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| +|剑指 Offer 33. 二叉搜索树的后序遍历序列|4|https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof| |300. 最长上升子序列|3|https://leetcode-cn.com/problems/longest-increasing-subsequence| -|94. 二叉树的中序遍历|3|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| |145. 二叉树的后序遍历|3|https://leetcode-cn.com/problems/binary-tree-postorder-traversal| +|33. 搜索旋转排序数组|3|https://leetcode-cn.com/problems/search-in-rotated-sorted-array| |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 21. 调整数组顺序使奇数位于偶数前面|3|https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof| |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| -|225. 用队列实现栈|3|https://leetcode-cn.com/problems/implement-stack-using-queues| |110. 平衡二叉树|3|https://leetcode-cn.com/problems/balanced-binary-tree| +|16. 最接近的三数之和|3|https://leetcode-cn.com/problems/3sum-closest| |5. 最长回文子串|3|https://leetcode-cn.com/problems/longest-palindromic-substring| +|443. 压缩字符串|3|https://leetcode-cn.com/problems/string-compression| +|1143. 最长公共子序列|3|https://leetcode-cn.com/problems/longest-common-subsequence| +|24. 两两交换链表中的节点|3|https://leetcode-cn.com/problems/swap-nodes-in-pairs| |补充题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| +|补充题4. 手撕快速排序|3|https://leetcode-cn.com/problems/sort-an-array| +|补充题1. 排序奇升偶降链表|3|https://mp.weixin.qq.com/s/377FfqvpY8NwMInhpoDgsw| +|剑指 Offer 38. 字符串的排列|3|https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcof| |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| -|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| |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| @@ -87,21 +95,24 @@ |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| +|55. 跳跃游戏|2|https://leetcode-cn.com/problems/jump-game| |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| +|32. 最长有效括号|2|https://leetcode-cn.com/problems/longest-valid-parentheses| |315. 计算右侧小于当前元素的个数|2|https://leetcode-cn.com/problems/count-of-smaller-numbers-after-self| |438. 找到字符串中所有字母异位词|2|https://leetcode-cn.com/problems/find-all-anagrams-in-a-string| +|93. 复原IP地址|2|https://leetcode-cn.com/problems/restore-ip-addresses| +|260. 只出现一次的数字 III|2|https://leetcode-cn.com/problems/single-number-iii| |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| +|76. 最小覆盖子串|2|https://leetcode-cn.com/problems/minimum-window-substring| +|470. 用 Rand7() 实现 Rand10()|2|https://leetcode-cn.com/problems/implement-rand10-using-rand7| +|530. 二叉搜索树的最小绝对差|2|https://leetcode-cn.com/problems/minimum-absolute-difference-in-bst| |128. 最长连续序列|1|https://leetcode-cn.com/problems/longest-consecutive-sequence| |480. 滑动窗口中位数|1|https://leetcode-cn.com/problems/sliding-window-median| |23. 合并K个排序链表|1|https://leetcode-cn.com/problems/merge-k-sorted-lists| @@ -114,7 +125,6 @@ |328. 奇偶链表|1|https://leetcode-cn.com/problems/odd-even-linked-list| |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| -|55. 跳跃游戏|1|https://leetcode-cn.com/problems/jump-game| |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| @@ -135,14 +145,9 @@ |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| -|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| @@ -155,8 +160,17 @@ |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 +|556. 下一个更大元素 III|1|https://leetcode-cn.com/problems/next-greater-element-iii| +|11. 盛最多水的容器|1|https://leetcode-cn.com/problems/container-with-most-water| +|927. 三等分|1|https://leetcode-cn.com/problems/three-equal-parts| +|剑指 Offer 03. 数组中重复的数字|1|https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof| +|114. 二叉树展开为链表|1|https://leetcode-cn.com/problems/flatten-binary-tree-to-linked-list| +|564. 寻找最近的回文数|1|https://leetcode-cn.com/problems/find-the-closest-palindrome| +|498. 对角线遍历|1|https://leetcode-cn.com/problems/diagonal-traverse| +|297. 二叉树的序列化与反序列化|1|https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree| +|171. Excel表列序号|1|https://leetcode-cn.com/problems/excel-sheet-column-number| +|976. 三角形的最大周长|1|https://leetcode-cn.com/problems/largest-perimeter-triangle| +|补充题23. 检测循环依赖|1|https://mp.weixin.qq.com/s/q6AhBt6MX2RL_HNZc8cYKQ| +|351. 安卓系统手势解锁|1|https://leetcode-cn.com/problems/android-unlock-patterns| \ No newline at end of file diff --git a/bytedance/data.md b/bytedance/data.md index ac4deeb..66a4510 100644 --- a/bytedance/data.md +++ b/bytedance/data.md @@ -1,48 +1,53 @@ # 数据研发 -若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 +我开发的[CodeTop题库](https://codetop.cc)可以按照部门、难度筛选,比markdown更方便查询高频题 + |题目|出现次数|链接| |-|-|-| +|101. 对称二叉树|3|https://leetcode-cn.com/problems/symmetric-tree| |25. K 个一组翻转链表|3|https://leetcode-cn.com/problems/reverse-nodes-in-k-group| |232. 用栈实现队列|3|https://leetcode-cn.com/problems/implement-queue-using-stacks| +|200. 岛屿数量|2|https://leetcode-cn.com/problems/number-of-islands| +|64. 最小路径和|2|https://leetcode-cn.com/problems/minimum-path-sum| |补充题1. 排序奇升偶降链表|2|https://mp.weixin.qq.com/s/377FfqvpY8NwMInhpoDgsw| +|146. LRU缓存机制|2|https://leetcode-cn.com/problems/lru-cache| |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| +|补充题6. 手撕堆排序|1|https://leetcode-cn.com/problems/sort-an-array| +|94. 二叉树的中序遍历|1|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| +|141. 环形链表|1|https://leetcode-cn.com/problems/linked-list-cycle| +|剑指 Offer 53 - I. 在排序数组中查找数字 I|1|https://leetcode-cn.com/problems/zai-pai-xu-shu-zu-zhong-cha-zhao-shu-zi-lcof| +|230. 二叉搜索树中第K小的元素|1|https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst| +|704. 二分查找|1|https://leetcode-cn.com/problems/binary-search| +|122. 买卖股票的最佳时机 II|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| +|69. x 的平方根|1|https://leetcode-cn.com/problems/sqrtx| +|148. 排序链表|1|https://leetcode-cn.com/problems/sort-list| |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| +|16. 最接近的三数之和|1|https://leetcode-cn.com/problems/3sum-closest| +|102. 二叉树的层序遍历|1|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| +|240. 搜索二维矩阵 II|1|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| |剑指 Offer 41. 数据流中的中位数|1|https://leetcode-cn.com/problems/shu-ju-liu-zhong-de-zhong-wei-shu-lcof| |112. 路径总和|1|https://leetcode-cn.com/problems/path-sum| |3. 无重复字符的最长子串|1|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| |剑指 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| |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| +|206. 反转链表|1|https://leetcode-cn.com/problems/reverse-linked-list| |42. 接雨水|1|https://leetcode-cn.com/problems/trapping-rain-water| -|240. 搜索二维矩阵 II|1|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| +|138. 复制带随机指针的链表|1|https://leetcode-cn.com/problems/copy-list-with-random-pointer| |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| |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| +|113. 路径总和 II|1|https://leetcode-cn.com/problems/path-sum-ii| +|143. 重排链表|1|https://leetcode-cn.com/problems/reorder-list| |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 6cb55c7..9273447 100644 --- a/bytedance/frontend.md +++ b/bytedance/frontend.md @@ -1,79 +1,68 @@ # 前端 -若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 +我开发的[CodeTop题库](https://codetop.cc)可以按照部门、难度筛选,比markdown更方便查询高频题 + |题目|出现次数|链接| |-|-|-| -|88. 合并两个有序数组|14|https://leetcode-cn.com/problems/merge-sorted-array| -|3. 无重复字符的最长子串|13|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| +|88. 合并两个有序数组|16|https://leetcode-cn.com/problems/merge-sorted-array| +|3. 无重复字符的最长子串|16|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| +|129. 求根到叶子节点数字之和|12|https://leetcode-cn.com/problems/sum-root-to-leaf-numbers| +|53. 最大子序和|12|https://leetcode-cn.com/problems/maximum-subarray| |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| +|112. 路径总和|10|https://leetcode-cn.com/problems/path-sum| +|1. 两数之和|10|https://leetcode-cn.com/problems/two-sum| +|165. 比较版本号|9|https://leetcode-cn.com/problems/compare-version-numbers| |209. 长度最小的子数组|8|https://leetcode-cn.com/problems/minimum-size-subarray-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| +|415. 字符串相加|8|https://leetcode-cn.com/problems/add-strings| +|剑指 Offer 22. 链表中倒数第k个节点|7|https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof| +|206. 反转链表|7|https://leetcode-cn.com/problems/reverse-linked-list| +|102. 二叉树的层序遍历|6|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| |93. 复原IP地址|5|https://leetcode-cn.com/problems/restore-ip-addresses| -|剑指 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| +|200. 岛屿数量|5|https://leetcode-cn.com/problems/number-of-islands| +|70. 爬楼梯|5|https://leetcode-cn.com/problems/climbing-stairs| |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| +|141. 环形链表|5|https://leetcode-cn.com/problems/linked-list-cycle| +|46. 全排列|5|https://leetcode-cn.com/problems/permutations| +|429. N叉树的层序遍历|5|https://leetcode-cn.com/problems/n-ary-tree-level-order-traversal| |226. 翻转二叉树|4|https://leetcode-cn.com/problems/invert-binary-tree| +|15. 三数之和|4|https://leetcode-cn.com/problems/3sum| +|54. 螺旋矩阵|4|https://leetcode-cn.com/problems/spiral-matrix| |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| -|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. 相交链表|4|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| +|695. 岛屿的最大面积|4|https://leetcode-cn.com/problems/max-area-of-island| +|62. 不同路径|4|https://leetcode-cn.com/problems/unique-paths| |94. 二叉树的中序遍历|3|https://leetcode-cn.com/problems/binary-tree-inorder-traversal| -|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| +|121. 买卖股票的最佳时机|3|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| +|104. 二叉树的最大深度|3|https://leetcode-cn.com/problems/maximum-depth-of-binary-tree| +|509. 斐波那契数|3|https://leetcode-cn.com/problems/fibonacci-number| +|113. 路径总和 II|3|https://leetcode-cn.com/problems/path-sum-ii| +|剑指 Offer 62. 圆圈中最后剩下的数字|3|https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof| +|20. 有效的括号|3|https://leetcode-cn.com/problems/valid-parentheses| +|349. 两个数组的交集|3|https://leetcode-cn.com/problems/intersection-of-two-arrays| +|5. 最长回文子串|3|https://leetcode-cn.com/problems/longest-palindromic-substring| +|236. 二叉树的最近公共祖先|3|https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree| +|394. 字符串解码|2|https://leetcode-cn.com/problems/decode-string| +|19. 删除链表的倒数第N个节点|2|https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list| +|21. 合并两个有序链表|2|https://leetcode-cn.com/problems/merge-two-sorted-lists| |剑指 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| |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| -|394. 字符串解码|2|https://leetcode-cn.com/problems/decode-string| -|剑指 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 21. 调整数组顺序使奇数位于偶数前面|2|https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof| +|144. 二叉树的前序遍历|2|https://leetcode-cn.com/problems/binary-tree-preorder-traversal| +|198. 打家劫舍|2|https://leetcode-cn.com/problems/house-robber| +|14. 最长公共前缀|2|https://leetcode-cn.com/problems/longest-common-prefix| +|补充题3. 求区间最小数乘区间和的最大值|2|https://mp.weixin.qq.com/s/ABNN4lJpvttulwWaUTgYZQ| +|199. 二叉树的右视图|2|https://leetcode-cn.com/problems/binary-tree-right-side-view| +|剑指 Offer 09. 用两个栈实现队列|2|https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof| +|56. 合并区间|2|https://leetcode-cn.com/problems/merge-intervals| +|剑指 Offer 38. 字符串的排列|2|https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcof| +|400. 第N个数字|2|https://leetcode-cn.com/problems/nth-digit| +|101. 对称二叉树|2|https://leetcode-cn.com/problems/symmetric-tree| +|146. LRU缓存机制|2|https://leetcode-cn.com/problems/lru-cache| |剑指 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| @@ -83,7 +72,7 @@ |498. 对角线遍历|1|https://leetcode-cn.com/problems/diagonal-traverse| |224. 基本计算器|1|https://leetcode-cn.com/problems/basic-calculator| |227. 基本计算器 II|1|https://leetcode-cn.com/problems/basic-calculator-ii| -|257. 二叉树的所有路径|1|https://leetcode-cn.com/problems/binary-tree-paths| +|剑指 Offer 04. 二维数组中的查找|1|https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof| |443. 压缩字符串|1|https://leetcode-cn.com/problems/string-compression| |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| @@ -96,4 +85,29 @@ |242. 有效的字母异位词|1|https://leetcode-cn.com/problems/valid-anagram| |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 +|1498. 满足条件的子序列数目|1|https://leetcode-cn.com/problems/number-of-subsequences-that-satisfy-the-given-sum-condition| +|257. 二叉树的所有路径|1|https://leetcode-cn.com/problems/binary-tree-paths| +|63. 不同路径 II|1|https://leetcode-cn.com/problems/unique-paths-ii| +|609. 在系统中查找重复文件|1|https://leetcode-cn.com/problems/find-duplicate-file-in-system| +|232. 用栈实现队列|1|https://leetcode-cn.com/problems/implement-queue-using-stacks| +|39. 组合总和|1|https://leetcode-cn.com/problems/combination-sum| +|剑指 Offer 10- I. 斐波那契数列|1|https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof| +|361. 轰炸敌人|1|https://leetcode-cn.com/problems/bomb-enemy| +|525. 连续数组|1|https://leetcode-cn.com/problems/contiguous-array| +|96. 不同的二叉搜索树|1|https://leetcode-cn.com/problems/unique-binary-search-trees| +|103. 二叉树的锯齿形层次遍历|1|https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal| +|717. 1比特与2比特字符|1|https://leetcode-cn.com/problems/1-bit-and-2-bit-characters| +|300. 最长上升子序列|1|https://leetcode-cn.com/problems/longest-increasing-subsequence| +|1353. 最多可以参加的会议数目|1|https://leetcode-cn.com/problems/maximum-number-of-events-that-can-be-attended| +|剑指 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| +|LCP 04. 覆盖|1|https://leetcode-cn.com/problems/broken-board-dominoes| +|剑指 Offer 39. 数组中出现次数超过一半的数字|1|https://leetcode-cn.com/problems/shu-zu-zhong-chu-xian-ci-shu-chao-guo-yi-ban-de-shu-zi-lcof| +|剑指 Offer 07. 重建二叉树|1|https://leetcode-cn.com/problems/zhong-jian-er-cha-shu-lcof| +|补充题14. 阿拉伯数字转中文数字|1|| +|829. 连续整数求和|1|https://leetcode-cn.com/problems/consecutive-numbers-sum| +|1356. 根据数字二进制下 1 的数目排序|1|https://leetcode-cn.com/problems/sort-integers-by-the-number-of-1-bits| +|6. Z 字形变换|1|https://leetcode-cn.com/problems/zigzag-conversion| +|704. 二分查找|1|https://leetcode-cn.com/problems/binary-search| +|111. 二叉树的最小深度|1|https://leetcode-cn.com/problems/minimum-depth-of-binary-tree| +|105. 从前序与中序遍历序列构造二叉树|1|https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal| \ No newline at end of file diff --git a/bytedance/latest.md b/bytedance/latest.md deleted file mode 100644 index aa756cc..0000000 --- a/bytedance/latest.md +++ /dev/null @@ -1,195 +0,0 @@ -# 字节跳动最新涉及的leetcode题目 - -本次统计了3.1日~4.6日的289篇面经。 - -最近我开发了一个简易版网站https://codetop.cc/ - -网站比静态的markdown更方便大家按公司/部门/岗位查询题目 - -欢迎大家前来体验❤️ -| 题目 | 出现次数 | 链接 | -|------------------------------|------|-------------------------------------------------------------------------------------------------------------| -| 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 586d099..829879d 100644 --- a/bytedance/test.md +++ b/bytedance/test.md @@ -1,103 +1,111 @@ # 测试 -若想按部门/难度/题型筛选题目,可以在[CodeTop](https://codetop.cc)查询 +我开发的[CodeTop题库](https://codetop.cc)可以按照部门、难度筛选,比markdown更方便查询高频题 + |题目|出现次数|链接| |-|-|-| -|3. 无重复字符的最长子串|19|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| +|3. 无重复字符的最长子串|21|https://leetcode-cn.com/problems/longest-substring-without-repeating-characters| +|206. 反转链表|11|https://leetcode-cn.com/problems/reverse-linked-list| |169. 多数元素|11|https://leetcode-cn.com/problems/majority-element| -|20. 有效的括号|9|https://leetcode-cn.com/problems/valid-parentheses| -|206. 反转链表|8|https://leetcode-cn.com/problems/reverse-linked-list| +|20. 有效的括号|10|https://leetcode-cn.com/problems/valid-parentheses| |1. 两数之和|8|https://leetcode-cn.com/problems/two-sum| -|415. 字符串相加|7|https://leetcode-cn.com/problems/add-strings| +|415. 字符串相加|8|https://leetcode-cn.com/problems/add-strings| +|160. 相交链表|7|https://leetcode-cn.com/problems/intersection-of-two-linked-lists| |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| +|239. 滑动窗口最大值|6|https://leetcode-cn.com/problems/sliding-window-maximum| |78. 子集|5|https://leetcode-cn.com/problems/subsets| -|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| +|179. 最大数|5|https://leetcode-cn.com/problems/largest-number| +|121. 买卖股票的最佳时机|5|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock| +|5. 最长回文子串|5|https://leetcode-cn.com/problems/longest-palindromic-substring| +|141. 环形链表|5|https://leetcode-cn.com/problems/linked-list-cycle| +|83. 删除排序链表中的重复元素|5|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list| +|718. 最长重复子数组|5|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| |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| -|718. 最长重复子数组|4|https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray| +|142. 环形链表 II|4|https://leetcode-cn.com/problems/linked-list-cycle-ii| +|剑指 Offer 61. 扑克牌中的顺子|4|https://leetcode-cn.com/problems/bu-ke-pai-zhong-de-shun-zi-lcof| +|468. 验证IP地址|4|https://leetcode-cn.com/problems/validate-ip-address| +|62. 不同路径|4|https://leetcode-cn.com/problems/unique-paths| +|70. 爬楼梯|4|https://leetcode-cn.com/problems/climbing-stairs| +|15. 三数之和|4|https://leetcode-cn.com/problems/3sum| |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| +|1143. 最长公共子序列|4|https://leetcode-cn.com/problems/longest-common-subsequence| +|21. 合并两个有序链表|4|https://leetcode-cn.com/problems/merge-two-sorted-lists| +|39. 组合总和|4|https://leetcode-cn.com/problems/combination-sum| |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| -|62. 不同路径|3|https://leetcode-cn.com/problems/unique-paths| +|剑指 Offer 21. 调整数组顺序使奇数位于偶数前面|3|https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof| +|215. 数组中的第K个最大元素|3|https://leetcode-cn.com/problems/kth-largest-element-in-an-array| +|32. 最长有效括号|3|https://leetcode-cn.com/problems/longest-valid-parentheses| +|26. 删除排序数组中的重复项|3|https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array| +|124. 二叉树中的最大路径和|3|https://leetcode-cn.com/problems/binary-tree-maximum-path-sum| +|8. 字符串转换整数 (atoi)|3|https://leetcode-cn.com/problems/string-to-integer-atoi| +|76. 最小覆盖子串|2|https://leetcode-cn.com/problems/minimum-window-substring| |146. LRU缓存机制|2|https://leetcode-cn.com/problems/lru-cache| -|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| -|268. 缺失数字|2|https://leetcode-cn.com/problems/missing-number| -|125. 验证回文串|2|https://leetcode-cn.com/problems/valid-palindrome| +|19. 删除链表的倒数第N个节点|2|https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list| |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| -|剑指 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| +|240. 搜索二维矩阵 II|2|https://leetcode-cn.com/problems/search-a-2d-matrix-ii| +|125. 验证回文串|2|https://leetcode-cn.com/problems/valid-palindrome| +|268. 缺失数字|2|https://leetcode-cn.com/problems/missing-number| +|42. 接雨水|2|https://leetcode-cn.com/problems/trapping-rain-water| +|88. 合并两个有序数组|2|https://leetcode-cn.com/problems/merge-sorted-array| +|242. 有效的字母异位词|2|https://leetcode-cn.com/problems/valid-anagram| +|151. 翻转字符串里的单词|2|https://leetcode-cn.com/problems/reverse-words-in-a-string| +|剑指 Offer 10- II. 青蛙跳台阶问题|2|https://leetcode-cn.com/problems/qing-wa-tiao-tai-jie-wen-ti-lcof| +|56. 合并区间|2|https://leetcode-cn.com/problems/merge-intervals| +|470. 用 Rand7() 实现 Rand10()|2|https://leetcode-cn.com/problems/implement-rand10-using-rand7| +|93. 复原IP地址|2|https://leetcode-cn.com/problems/restore-ip-addresses| +|283. 移动零|2|https://leetcode-cn.com/problems/move-zeroes| +|补充题11. 翻转URL字符串里的单词|2|| |350. 两个数组的交集 II|1|https://leetcode-cn.com/problems/intersection-of-two-arrays-ii| -|补充题1. 排序奇升偶降链表|1|https://mp.weixin.qq.com/s/377FfqvpY8NwMInhpoDgsw| -|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| -|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| +|51. N皇后|1|https://leetcode-cn.com/problems/n-queens| +|1201. 丑数 III|1|https://leetcode-cn.com/problems/ugly-number-iii| |344. 反转字符串|1|https://leetcode-cn.com/problems/reverse-string| +|862. 和至少为 K 的最短子数组|1|https://leetcode-cn.com/problems/shortest-subarray-with-sum-at-least-k| +|剑指 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| +|9. 回文数|1|https://leetcode-cn.com/problems/palindrome-number| +|405. 数字转换为十六进制数|1|https://leetcode-cn.com/problems/convert-a-number-to-hexadecimal| +|200. 岛屿数量|1|https://leetcode-cn.com/problems/number-of-islands| +|796. 旋转字符串|1|https://leetcode-cn.com/problems/rotate-string| +|234. 回文链表|1|https://leetcode-cn.com/problems/palindrome-linked-list| +|162. 寻找峰值|1|https://leetcode-cn.com/problems/find-peak-element| |41. 缺失的第一个正数|1|https://leetcode-cn.com/problems/first-missing-positive| |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| |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| -|862. 和至少为 K 的最短子数组|1|https://leetcode-cn.com/problems/shortest-subarray-with-sum-at-least-k| -|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| |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| |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 +|剑指 Offer 22. 链表中倒数第k个节点|1|https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof| +|224. 基本计算器|1|https://leetcode-cn.com/problems/basic-calculator| +|122. 买卖股票的最佳时机 II|1|https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii| +|补充题1. 排序奇升偶降链表|1|https://mp.weixin.qq.com/s/377FfqvpY8NwMInhpoDgsw| +|958. 二叉树的完全性检验|1|https://leetcode-cn.com/problems/check-completeness-of-a-binary-tree| +|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| +|459. 重复的子字符串|1|https://leetcode-cn.com/problems/repeated-substring-pattern| +|102. 二叉树的层序遍历|1|https://leetcode-cn.com/problems/binary-tree-level-order-traversal| +|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| +|226. 翻转二叉树|1|https://leetcode-cn.com/problems/invert-binary-tree| +|144. 二叉树的前序遍历|1|https://leetcode-cn.com/problems/binary-tree-preorder-traversal| +|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| +|11. 盛最多水的容器|1|https://leetcode-cn.com/problems/container-with-most-water| +|61. 旋转链表|1|https://leetcode-cn.com/problems/rotate-list| +|18. 四数之和|1|https://leetcode-cn.com/problems/4sum| +|2. 两数相加|1|https://leetcode-cn.com/problems/add-two-numbers| +|剑指 Offer 62. 圆圈中最后剩下的数字|1|https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof| +|231. 2的幂|1|https://leetcode-cn.com/problems/power-of-two| +|补充题4. 手撕快速排序|1|https://leetcode-cn.com/problems/sort-an-array| \ No newline at end of file