# LeetCode刷题记录 **Repository Path**: jessytsui/LeetCode ## Basic Information - **Project Name**: LeetCode刷题记录 - **Description**: 通过Gitee上传每人的每日代码,模拟工作中的协同版本控制。后续会跟进建一个基于SpringBoot+VUE的前后端分离页面,并采用python爬取数据后做基本的数据分析,类似这个页面:https://ojeveryday.com/#/check - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2022-01-08 - **Last Updated**: 2024-07-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 每日力扣刷题的记录平台 ## 一、基本使用说明 1. 首先在群里扫码加入管理员权限,然后用URL把项目拉到本地的IDE上 2. 按下图操作 2. ## 二、命令行提交说明 + (感谢缘神写的说明文件) ***\*命令行提交每日 LeetCode 简略指南\**** 1. 首先,把仓库 Clone 下来,然后进入目录 ![](./source/img/img2.png) 2. 查看所有分支,并切换远程分支 ![](./source/img/img3.png) 其中,不带 remotes 的是本地分支,其他是远程分支。本地默认的master分支和远程的 origin/master 分支是关联的。我们要创建一个和 origin/dev 关联的本地分支dev。 ![](./source/img/img4.png) 可以看到,我们的本地分支已经切换到了dev。查看远程分支和当前分支状态: ![](./source/img/img5.png) 可以看到本地的dev分支和远程的origin/dev分支是相关联的。 3. 修改并提交文件 现在我们对文件做一点修改,比如创建一个test.cpp文件。然后查看状态 ![](./source/img/img6.png) 确认所有修改,并提交。(注意:提交时需要写清楚提交日志) ![](./source/img/img7.png) 然后把修改推送到远程仓库中(第一次push会要求输入gitee账号密码) ![](./source/img/img8.png) 4. 后续的工作流程 首先,每天进入文件夹,检查是否在dev分支(如果不在,切换到dev分支),并git pull ![](./source/img/img9.png) 然后,编辑文件,做出修改。 修改完成之后,按照上面的步骤3提交。 备注:cmd下查看自己在哪个分支的方法是: ![](./source/img/img10.png) 上面就可以看到当前所在分支。 ## 三、格式说明 1. 暂时采用根目录下放Day{x}的形式,文件内的命名格式为:***"昵称_今日第几题_leetcode题号_简短描述内容和方法/分类.后缀"***,题号直接复制中文力扣的题目名,简短描述可以省去不写,如"熊猫_1_350. 两个数组的交集 II_常规的哈希表.py"或"熊猫_1_350. 两个数组的交集 II.py" 2. 不同方法可以在同一代码文件中列出,尽量写清楚注释,虽然之后可能不会有其他人参观我们的代码,但这是对自己总结和说明能力的锻炼 3. 大家可以在根目录下以自己的昵称建一个文件夹,放自己额外刷的题或者其他方法、记录等等。根目录下放一些说明性的和全局性的文件,尽量不要动。 4. 有master和dev两个分支,master是受保护主分支,dev是日常分支。代码要先提交到dev分支,审批后才可合并到master分支。这是为了熟悉以后工作的流程。按下图操作![](./source/img/init6.png)然后就可以进入审批阶段,只要知道工作中是由leader审核代码做合并工作的就行,这里我直接给所有管理员都开了审核的权限。 5. IDEA、pycharm都有git管理快捷键,只需先登陆gitee账号,然后查看git或vcs菜单下的选项。 6. 一天的正常流程是打开IDE先pull拉取最新仓库代码,然后把自己的代码先push到dev分支,检查无误后commit,最后审批合并代码 ## 四、常见问题 1. 文件命名中不要包含 / * 符号,win会识别为转义字符 2. 刚clone到本地时,可能无法正常显示。点击项目结构里这个按钮,改成project files 3. .idea中保存的一些配置文件,可能有兼容问题,clone或提交失败可以尝试删掉.idea文件后重启IDE,会生成一个默认的.idea文件 ## 五、频率统计 统计日期2022-1-18。 感谢U哥的力扣会员,从高往低统计了各个类型出现频率大概在一半以上的题目,中间的百分数是通过率,要做专题训练的可以参考这个数据来刷。 [数组](#数组) [字符串](#字符串) [哈希表](#哈希表) [动态规划](#动态规划) [数学](#数学) [深度优先搜索](#深度优先搜索) [排序](#排序) [广度优先搜索](#广度优先搜索) [贪心](#贪心) [二叉树](#二叉树) [二分查找](#二分查找) [矩阵](#矩阵) [双指针](#双指针) [数据库](#数据库) [位运算](#位运算) [堆(优先队列)](#堆(优先队列)) [链表](#链表) [前缀和](#前缀和) ### 数组 | | [1. 两数之和](https://leetcode-cn.com/problems/two-sum/) | 52.3% | 简单 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [704. 二分查找](https://leetcode-cn.com/problems/binary-search/) | 54.7% | 简单 | | | | [4. 寻找两个正序数组的中位数](https://leetcode-cn.com/problems/median-of-two-sorted-arrays/) | 41.1% | 困难 | | | | [217. 存在重复元素](https://leetcode-cn.com/problems/contains-duplicate/) | 55.6% | 简单 | | | | [15. 三数之和](https://leetcode-cn.com/problems/3sum/) | 34.3% | 中等 | | | | [42. 接雨水](https://leetcode-cn.com/problems/trapping-rain-water/) | 59.3% | 困难 | | | | [11. 盛最多水的容器](https://leetcode-cn.com/problems/container-with-most-water/) | 62.1% | 中等 | | | | [121. 买卖股票的最佳时机](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/) | 57.4% | 简单 | | | | [16. 最接近的三数之和](https://leetcode-cn.com/problems/3sum-closest/) | 45.8% | 中等 | | | | [200. 岛屿数量](https://leetcode-cn.com/problems/number-of-islands/) | 56.5% | 中等 | | | | [剑指 Offer 03. 数组中重复的数字](https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof/) | 67.9% | 简单 | | | | [135. 分发糖果](https://leetcode-cn.com/problems/candy/) | 48.7% | 困难 | | | | [56. 合并区间](https://leetcode-cn.com/problems/merge-intervals/) | 47.6% | 中等 | | | | [611. 有效三角形的个数](https://leetcode-cn.com/problems/valid-triangle-number/) | 53.2% | 中等 | | | | [88. 合并两个有序数组](https://leetcode-cn.com/problems/merge-sorted-array/) | 52.0% | 简单 | | | | [215. 数组中的第K个最大元素](https://leetcode-cn.com/problems/kth-largest-element-in-an-array/) | 64.7% | 中等 | | | | [46. 全排列](https://leetcode-cn.com/problems/permutations/) | 78.5% | 中等 | | | | [136. 只出现一次的数字](https://leetcode-cn.com/problems/single-number/) | 71.9% | 简单 | | | | [53. 最大子数组和](https://leetcode-cn.com/problems/maximum-subarray/) | 55.2% | 简单 | | | | [152. 乘积最大子数组](https://leetcode-cn.com/problems/maximum-product-subarray/) | 42.3% | 中等 | | | | [128. 最长连续序列](https://leetcode-cn.com/problems/longest-consecutive-sequence/) | 54.6% | 中等 | | | | [45. 跳跃游戏 II](https://leetcode-cn.com/problems/jump-game-ii/) | 43.7% | 中等 | | | | [912. 排序数组](https://leetcode-cn.com/problems/sort-an-array/) | 55.7% | 中等 | | | | [41. 缺失的第一个正数](https://leetcode-cn.com/problems/first-missing-positive/) | 42.1% | 困难 | | | | [31. 下一个排列](https://leetcode-cn.com/problems/next-permutation/) | 37.3% | 中等 | | | | [283. 移动零](https://leetcode-cn.com/problems/move-zeroes/) | 64.0% | 简单 | | | | [198. 打家劫舍](https://leetcode-cn.com/problems/house-robber/) | 52.3% | 中等 | | | | [剑指 Offer 51. 数组中的逆序对](https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof/) | 48.6% | 困难 | | | | [26. 删除有序数组中的重复项](https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/) | 53.6% | 简单 | | | | [54. 螺旋矩阵](https://leetcode-cn.com/problems/spiral-matrix/) | 48.3% | 中等 | | | | [64. 最小路径和](https://leetcode-cn.com/problems/minimum-path-sum/) | 69.0% | 中等 | | | | [560. 和为 K 的子数组](https://leetcode-cn.com/problems/subarray-sum-equals-k/) | 44.7% | 中等 | | | | [189. 轮转数组](https://leetcode-cn.com/problems/rotate-array/) | 44.6% | 中等 | | | | [剑指 Offer 11. 旋转数组的最小数字](https://leetcode-cn.com/problems/xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof/) | 49.2% | 简单 | | | | [面试题 17.24. 最大子矩阵](https://leetcode-cn.com/problems/max-submatrix-lcci/) | 52.3% | 困难 | | | | [51. N 皇后](https://leetcode-cn.com/problems/n-queens/) | 73.8% | 困难 | | | | [39. 组合总和](https://leetcode-cn.com/problems/combination-sum/) | 72.7% | 中等 | | | | [881. 救生艇](https://leetcode-cn.com/problems/boats-to-save-people/) | 53.8% | 中等 | | | | [剑指 Offer 42. 连续子数组的最大和](https://leetcode-cn.com/problems/lian-xu-zi-shu-zu-de-zui-da-he-lcof/) | 60.6% | 简单 | | | | [59. 螺旋矩阵 II](https://leetcode-cn.com/problems/spiral-matrix-ii/) | 78.0% | 中等 | | | | [162. 寻找峰值](https://leetcode-cn.com/problems/find-peak-element/) | 49.6% | 中等 | | | | [面试题 17.14. 最小K个数](https://leetcode-cn.com/problems/smallest-k-lcci/) | 59.6% | 中等 | | | | [300. 最长递增子序列](https://leetcode-cn.com/problems/longest-increasing-subsequence/) | 52.4% | 中等 | | | | [33. 搜索旋转排序数组](https://leetcode-cn.com/problems/search-in-rotated-sorted-array/) | 43.1% | 中等 | | | | [673. 最长递增子序列的个数](https://leetcode-cn.com/problems/number-of-longest-increasing-subsequence/) | 43.7% | 中等 | | | | [18. 四数之和](https://leetcode-cn.com/problems/4sum/) | 39.5% | 中等 | | | | [55. 跳跃游戏](https://leetcode-cn.com/problems/jump-game/) | 43.4% | 中等 | | | | [27. 移除元素](https://leetcode-cn.com/problems/remove-element/) | 59.6% | 简单 | | | | [309. 最佳买卖股票时机含冷冻期](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/) | 61.8% | 中等 | | | | [695. 岛屿的最大面积](https://leetcode-cn.com/problems/max-area-of-island/) | 66.9% | 中等 | | | | [349. 两个数组的交集](https://leetcode-cn.com/problems/intersection-of-two-arrays/) | 73.9% | 简单 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [34. 在排序数组中查找元素的第一个和最后一个位置](https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/) | 42.3% | 中等 | | | | [106. 从中序与后序遍历序列构造二叉树](https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/) | 72.2% | 中等 | | | | [84. 柱状图中最大的矩形](https://leetcode-cn.com/problems/largest-rectangle-in-histogram/) | 43.5% | 困难 | | | | [679. 24 点游戏](https://leetcode-cn.com/problems/24-game/) | 54.0% | 困难 | | | | [739. 每日温度](https://leetcode-cn.com/problems/daily-temperatures/) | 68.4% | 中等 | | | | [322. 零钱兑换](https://leetcode-cn.com/problems/coin-change/) | 44.9% | 中等 | | | | [48. 旋转图像](https://leetcode-cn.com/problems/rotate-image/) | 73.7% | 中等 | | | | [221. 最大正方形](https://leetcode-cn.com/problems/maximal-square/) | 48.1% | 中等 | | | | [167. 两数之和 II - 输入有序数组](https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/) | 58.7% | 简单 | | | | [105. 从前序与中序遍历序列构造二叉树](https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/) | 70.7% | 中等 | | | | [35. 搜索插入位置](https://leetcode-cn.com/problems/search-insert-position/) | 45.8% | 简单 | | | | [剑指 Offer 40. 最小的k个数](https://leetcode-cn.com/problems/zui-xiao-de-kge-shu-lcof/) | 57.2% | 简单 | | | | [169. 多数元素](https://leetcode-cn.com/problems/majority-element/) | 66.5% | 简单 | | | | [455. 分发饼干](https://leetcode-cn.com/problems/assign-cookies/) | 57.5% | 简单 | | | | [78. 子集](https://leetcode-cn.com/problems/subsets/) | 80.3% | 中等 | | | | [1488. 避免洪水泛滥](https://leetcode-cn.com/problems/avoid-flood-in-the-city/) | 24.5% | 中等 | | | | [134. 加油站](https://leetcode-cn.com/problems/gas-station/) | 56.4% | 中等 | | | | [36. 有效的数独](https://leetcode-cn.com/problems/valid-sudoku/) | 63.7% | 中等 | | | | [350. 两个数组的交集 II](https://leetcode-cn.com/problems/intersection-of-two-arrays-ii/) | 55.4% | 简单 | | | | [47. 全排列 II](https://leetcode-cn.com/problems/permutations-ii/) | 64.2% | 中等 | | | | [239. 滑动窗口最大值](https://leetcode-cn.com/problems/sliding-window-maximum/) | 49.7% | 困难 | | | | [剑指 Offer 04. 二维数组中的查找](https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof/) | 40.3% | 中等 | | | | [37. 解数独](https://leetcode-cn.com/problems/sudoku-solver/) | 67.1% | 困难 | | | | [347. 前 K 个高频元素](https://leetcode-cn.com/problems/top-k-frequent-elements/) | 62.4% | 中等 | | | | [689. 三个无重叠子数组的最大和](https://leetcode-cn.com/problems/maximum-sum-of-3-non-overlapping-subarrays/) | 56.2% | 困难 | | | | [218. 天际线问题](https://leetcode-cn.com/problems/the-skyline-problem/) | 54.3% | 困难 | | | | [407. 接雨水 II](https://leetcode-cn.com/problems/trapping-rain-water-ii/) | 58.0% | 困难 | | | | [213. 打家劫舍 II](https://leetcode-cn.com/problems/house-robber-ii/) | 43.5% | 中等 | | | | [240. 搜索二维矩阵 II](https://leetcode-cn.com/problems/search-a-2d-matrix-ii/) | 49.9% | 中等 | | | | [118. 杨辉三角](https://leetcode-cn.com/problems/pascals-triangle/) | 73.9% | 简单 | | | | [416. 分割等和子集](https://leetcode-cn.com/problems/partition-equal-subset-sum/) | 51.1% | 中等 | | | | [面试题 10.01. 合并排序的数组](https://leetcode-cn.com/problems/sorted-merge-lcci/) | 55.7% | 简单 | | | | [260. 只出现一次的数字 III](https://leetcode-cn.com/problems/single-number-iii/) | 74.0% | 中等 | | | | [剑指 Offer 29. 顺时针打印矩阵](https://leetcode-cn.com/problems/shun-shi-zhen-da-yin-ju-zhen-lcof/) | 43.9% | 简单 | | | | [123. 买卖股票的最佳时机 III](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii/) | 54.4% | 困难 | | | | [526. 优美的排列](https://leetcode-cn.com/problems/beautiful-arrangement/) | 73.4% | 中等 | | | | [977. 有序数组的平方](https://leetcode-cn.com/problems/squares-of-a-sorted-array/) | 69.9% | 简单 | | | | [剑指 Offer 07. 重建二叉树](https://leetcode-cn.com/problems/zhong-jian-er-cha-shu-lcof/) | 70.0% | 中等 | | | | [253. 会议室 II](https://leetcode-cn.com/problems/meeting-rooms-ii/)![plus](https://static.leetcode-cn.com/cn-mono-assets/production/assets/plus.31398c34.svg) | 50.6% | 中等 | | | | [442. 数组中重复的数据](https://leetcode-cn.com/problems/find-all-duplicates-in-an-array/) | 69.9% | 中等 | | | | [575. 分糖果](https://leetcode-cn.com/problems/distribute-candies/) | 71.2% | 简单 | | | | [剑指 Offer 63. 股票的最大利润](https://leetcode-cn.com/problems/gu-piao-de-zui-da-li-run-lcof/) | 63.5% | 中等 | | | | [面试题 01.07. 旋转矩阵](https://leetcode-cn.com/problems/rotate-matrix-lcci/) | 74.8% | 中等 | | | | [188. 买卖股票的最佳时机 IV](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iv/) | 40.0% | 困难 | | | | [517. 超级洗衣机](https://leetcode-cn.com/problems/super-washing-machines/) | 51.0% | 困难 | | | | [581. 最短无序连续子数组](https://leetcode-cn.com/problems/shortest-unsorted-continuous-subarray/) | 40.7% | 中等 | | | | [40. 组合总和 II](https://leetcode-cn.com/problems/combination-sum-ii/) | 61.4% | 中等 | | | | [229. 求众数 II](https://leetcode-cn.com/problems/majority-element-ii/) | 53.4% | 中等 | | | | [剑指 Offer 56 - I. 数组中数字出现的次数](https://leetcode-cn.com/problems/shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof/) | 69.6% | 中等 | | ### 字符串 | | [5. 最长回文子串](https://leetcode-cn.com/problems/longest-palindromic-substring/) | 36.0% | 中等 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [3. 无重复字符的最长子串](https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/) | 38.4% | 中等 | | | | [14. 最长公共前缀](https://leetcode-cn.com/problems/longest-common-prefix/) | 41.6% | 简单 | | | | [10. 正则表达式匹配](https://leetcode-cn.com/problems/regular-expression-matching/) | 31.6% | 困难 | | | | [22. 括号生成](https://leetcode-cn.com/problems/generate-parentheses/) | 77.3% | 中等 | | | | [20. 有效的括号](https://leetcode-cn.com/problems/valid-parentheses/) | 44.5% | 简单 | | | | [13. 罗马数字转整数](https://leetcode-cn.com/problems/roman-to-integer/) | 62.9% | 简单 | | | | [72. 编辑距离](https://leetcode-cn.com/problems/edit-distance/) | 61.6% | 困难 | | | | [32. 最长有效括号](https://leetcode-cn.com/problems/longest-valid-parentheses/) | 35.8% | 困难 | | | | [93. 复原 IP 地址](https://leetcode-cn.com/problems/restore-ip-addresses/) | 54.9% | 中等 | | | | [6. Z 字形变换](https://leetcode-cn.com/problems/zigzag-conversion/) | 51.0% | 中等 | | | | [面试题 01.01. 判定字符是否唯一](https://leetcode-cn.com/problems/is-unique-lcci/) | 71.5% | 简单 | | | | [剑指 Offer 38. 字符串的排列](https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcof/) | 58.1% | 中等 | | | | [394. 字符串解码](https://leetcode-cn.com/problems/decode-string/) | 55.5% | 中等 | | | | [43. 字符串相乘](https://leetcode-cn.com/problems/multiply-strings/) | 45.0% | 中等 | | | | [8. 字符串转换整数 (atoi)](https://leetcode-cn.com/problems/string-to-integer-atoi/) | 21.8% | 中等 | | | | [415. 字符串相加](https://leetcode-cn.com/problems/add-strings/) | 54.2% | 简单 | | | | [179. 最大数](https://leetcode-cn.com/problems/largest-number/) | 41.0% | 中等 | | | | [165. 比较版本号](https://leetcode-cn.com/problems/compare-version-numbers/) | 52.2% | 中等 | | | | [557. 反转字符串中的单词 III](https://leetcode-cn.com/problems/reverse-words-in-a-string-iii/) | 74.3% | 简单 | | | | [139. 单词拆分](https://leetcode-cn.com/problems/word-break/) | 52.1% | 中等 | | | | [516. 最长回文子序列](https://leetcode-cn.com/problems/longest-palindromic-subsequence/) | 65.9% | 中等 | | | | [68. 文本左右对齐](https://leetcode-cn.com/problems/text-justification/) | 52.3% | 困难 | | | | [12. 整数转罗马数字](https://leetcode-cn.com/problems/integer-to-roman/) | 66.4% | 中等 | | | | [17. 电话号码的字母组合](https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/) | 57.5% | 中等 | | | | [剑指 Offer 05. 替换空格](https://leetcode-cn.com/problems/ti-huan-kong-ge-lcof/) | 76.0% | 简单 | | | | [剑指 Offer 45. 把数组排成最小的数](https://leetcode-cn.com/problems/ba-shu-zu-pai-cheng-zui-xiao-de-shu-lcof/) | 55.9% | 中等 | | | | [187. 重复的DNA序列](https://leetcode-cn.com/problems/repeated-dna-sequences/) | 52.4% | 中等 | | | | [583. 两个字符串的删除操作](https://leetcode-cn.com/problems/delete-operation-for-two-strings/) | 62.9% | 中等 | | | | [剑指 Offer 46. 把数字翻译成字符串](https://leetcode-cn.com/problems/ba-shu-zi-fan-yi-cheng-zi-fu-chuan-lcof/) | 53.1% | 中等 | | | | [678. 有效的括号字符串](https://leetcode-cn.com/problems/valid-parenthesis-string/) | 38.7% | 中等 | | | | [剑指 Offer 48. 最长不含重复字符的子字符串](https://leetcode-cn.com/problems/zui-chang-bu-han-zhong-fu-zi-fu-de-zi-zi-fu-chuan-lcof/) | 46.5% | 中等 | | | | [67. 二进制求和](https://leetcode-cn.com/problems/add-binary/) | 54.1% | 简单 | | | | [91. 解码方法](https://leetcode-cn.com/problems/decode-ways/) | 31.5% | 中等 | | | | [387. 字符串中的第一个唯一字符](https://leetcode-cn.com/problems/first-unique-character-in-a-string/) | 54.0% | 简单 | | | | [1143. 最长公共子序列](https://leetcode-cn.com/problems/longest-common-subsequence/) | 63.9% | 中等 | | | | [76. 最小覆盖子串](https://leetcode-cn.com/problems/minimum-window-substring/) | 43.2% | 困难 | | | | [434. 字符串中的单词数](https://leetcode-cn.com/problems/number-of-segments-in-a-string/) | 39.8% | 简单 | | | | [28. 实现 strStr()](https://leetcode-cn.com/problems/implement-strstr/) | 40.3% | 简单 | | | | [423. 从英文中重建数字](https://leetcode-cn.com/problems/reconstruct-original-digits-from-english/) | 61.2% | 中等 | | | | [567. 字符串的排列](https://leetcode-cn.com/problems/permutation-in-string/) | 43.5% | 中等 | | | | [316. 去除重复字母](https://leetcode-cn.com/problems/remove-duplicate-letters/) | 47.7% | 中等 | | | | [443. 压缩字符串](https://leetcode-cn.com/problems/string-compression/) | 47.8% | 中等 | | | | [224. 基本计算器](https://leetcode-cn.com/problems/basic-calculator/) | 41.8% | 困难 | | | | [125. 验证回文串](https://leetcode-cn.com/problems/valid-palindrome/) | 47.1% | 简单 | | | | [402. 移掉 K 位数字](https://leetcode-cn.com/problems/remove-k-digits/) | 32.7% | 中等 | | | | [44. 通配符匹配](https://leetcode-cn.com/problems/wildcard-matching/) | 32.9% | 困难 | | | | [488. 祖玛游戏](https://leetcode-cn.com/problems/zuma-game/) | 52.5% | 困难 | | | | [301. 删除无效的括号](https://leetcode-cn.com/problems/remove-invalid-parentheses/) | 54.8% | 困难 | | | | [58. 最后一个单词的长度](https://leetcode-cn.com/problems/length-of-last-word/) | 38.8% | 简单 | | | | [344. 反转字符串](https://leetcode-cn.com/problems/reverse-string/) | 77.7% | 简单 | | | | [剑指 Offer 50. 第一个只出现一次的字符](https://leetcode-cn.com/problems/di-yi-ge-zhi-chu-xian-yi-ci-de-zi-fu-lcof/) | 61.9% | 简单 | | | | | | | | | ---- | ---- | ---- | ---- | ---- | ### 哈希表 | | [1. 两数之和](https://leetcode-cn.com/problems/two-sum/) | 52.3% | 简单 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [3. 无重复字符的最长子串](https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/) | 38.4% | 中等 | | | | [217. 存在重复元素](https://leetcode-cn.com/problems/contains-duplicate/) | 55.6% | 简单 | | | | [146. LRU 缓存](https://leetcode-cn.com/problems/lru-cache/) | 52.5% | 中等 | | | | [13. 罗马数字转整数](https://leetcode-cn.com/problems/roman-to-integer/) | 62.9% | 简单 | | | | [剑指 Offer 03. 数组中重复的数字](https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof/) | 67.9% | 简单 | | | | [128. 最长连续序列](https://leetcode-cn.com/problems/longest-consecutive-sequence/) | 54.6% | 中等 | | | | [41. 缺失的第一个正数](https://leetcode-cn.com/problems/first-missing-positive/) | 42.1% | 困难 | | | | [面试题 16.25. LRU 缓存](https://leetcode-cn.com/problems/lru-cache-lcci/) | 54.6% | 中等 | | | | [560. 和为 K 的子数组](https://leetcode-cn.com/problems/subarray-sum-equals-k/) | 44.7% | 中等 | | | | [面试题 01.01. 判定字符是否唯一](https://leetcode-cn.com/problems/is-unique-lcci/) | 71.5% | 简单 | | | | [139. 单词拆分](https://leetcode-cn.com/problems/word-break/) | 52.1% | 中等 | | | | [349. 两个数组的交集](https://leetcode-cn.com/problems/intersection-of-two-arrays/) | 73.9% | 简单 | | | | [106. 从中序与后序遍历序列构造二叉树](https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/) | 72.2% | 中等 | | | | [12. 整数转罗马数字](https://leetcode-cn.com/problems/integer-to-roman/) | 66.4% | 中等 | | | | [17. 电话号码的字母组合](https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/) | 57.5% | 中等 | | | | [187. 重复的DNA序列](https://leetcode-cn.com/problems/repeated-dna-sequences/) | 52.4% | 中等 | | | | [141. 环形链表](https://leetcode-cn.com/problems/linked-list-cycle/) | 51.3% | 简单 | | | | [105. 从前序与中序遍历序列构造二叉树](https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/) | 70.7% | 中等 | | | | [169. 多数元素](https://leetcode-cn.com/problems/majority-element/) | 66.5% | 简单 | | | | [1488. 避免洪水泛滥](https://leetcode-cn.com/problems/avoid-flood-in-the-city/) | 24.5% | 中等 | | | | [剑指 Offer 48. 最长不含重复字符的子字符串](https://leetcode-cn.com/problems/zui-chang-bu-han-zhong-fu-zi-fu-de-zi-zi-fu-chuan-lcof/) | 46.5% | 中等 | | | | [36. 有效的数独](https://leetcode-cn.com/problems/valid-sudoku/) | 63.7% | 中等 | | | | [350. 两个数组的交集 II](https://leetcode-cn.com/problems/intersection-of-two-arrays-ii/) | 55.4% | 简单 | | | | [387. 字符串中的第一个唯一字符](https://leetcode-cn.com/problems/first-unique-character-in-a-string/) | 54.0% | 简单 | | | | [347. 前 K 个高频元素](https://leetcode-cn.com/problems/top-k-frequent-elements/) | 62.4% | 中等 | | | | [76. 最小覆盖子串](https://leetcode-cn.com/problems/minimum-window-substring/) | 43.2% | 困难 | | | | [138. 复制带随机指针的链表](https://leetcode-cn.com/problems/copy-list-with-random-pointer/) | 66.5% | 中等 | | | | [423. 从英文中重建数字](https://leetcode-cn.com/problems/reconstruct-original-digits-from-english/) | 61.2% | 中等 | | | | [142. 环形链表 II](https://leetcode-cn.com/problems/linked-list-cycle-ii/) | 55.6% | 中等 | | | | [202. 快乐数](https://leetcode-cn.com/problems/happy-number/) | 62.2% | 简单 | | | | [567. 字符串的排列](https://leetcode-cn.com/problems/permutation-in-string/) | 43.5% | 中等 | | | | [剑指 Offer 07. 重建二叉树](https://leetcode-cn.com/problems/zhong-jian-er-cha-shu-lcof/) | 70.0% | 中等 | | | | [442. 数组中重复的数据](https://leetcode-cn.com/problems/find-all-duplicates-in-an-array/) | 69.9% | 中等 | | | | [575. 分糖果](https://leetcode-cn.com/problems/distribute-candies/) | 71.2% | 简单 | | | | [229. 求众数 II](https://leetcode-cn.com/problems/majority-element-ii/) | 53.4% | 中等 | | | | [740. 删除并获得点数](https://leetcode-cn.com/problems/delete-and-earn/) | 62.8% | 中等 | | | | [剑指 Offer 53 - II. 0~n-1中缺失的数字](https://leetcode-cn.com/problems/que-shi-de-shu-zi-lcof/) | 44.8% | 简单 | | | | [160. 相交链表](https://leetcode-cn.com/problems/intersection-of-two-linked-lists/) | 62.0% | 简单 | | | | [剑指 Offer 50. 第一个只出现一次的字符](https://leetcode-cn.com/problems/di-yi-ge-zhi-chu-xian-yi-ci-de-zi-fu-lcof/) | 61.9% | 简单 | | | | [438. 找到字符串中所有字母异位词](https://leetcode-cn.com/problems/find-all-anagrams-in-a-string/) | 53.8% | 中等 | | | | [73. 矩阵置零](https://leetcode-cn.com/problems/set-matrix-zeroes/) | 61.1% | 中等 | | | | [1218. 最长定差子序列](https://leetcode-cn.com/problems/longest-arithmetic-subsequence-of-given-difference/) | 51.5% | 中等 | | | | [815. 公交路线](https://leetcode-cn.com/problems/bus-routes/) | 43.5% | 困难 | | | | [49. 字母异位词分组](https://leetcode-cn.com/problems/group-anagrams/) | 66.8% | 中等 | | | | [409. 最长回文串](https://leetcode-cn.com/problems/longest-palindrome/) | 55.6% | 简单 | | | | [30. 串联所有单词的子串](https://leetcode-cn.com/problems/substring-with-concatenation-of-all-words/) | 36.3% | 困难 | | | | [621. 任务调度器](https://leetcode-cn.com/problems/task-scheduler/) | 57.5% | 中等 | | | | [208. 实现 Trie (前缀树)](https://leetcode-cn.com/problems/implement-trie-prefix-tree/) | 71.9% | 中等 | | | | [166. 分数到小数](https://leetcode-cn.com/problems/fraction-to-recurring-decimal/) | 33.2% | 中等 | | | | [395. 至少有 K 个重复字符的最长子串](https://leetcode-cn.com/problems/longest-substring-with-at-least-k-repeating-characters/) | 52.0% | 中等 | | | | [454. 四数相加 II](https://leetcode-cn.com/problems/4sum-ii/) | 61.2% | 中等 | | | | [763. 划分字母区间](https://leetcode-cn.com/problems/partition-labels/) | 76.4% | 中等 | | | | [705. 设计哈希集合](https://leetcode-cn.com/problems/design-hashset/) | 64.2% | 简单 | | ### 动态规划 | | [5. 最长回文子串](https://leetcode-cn.com/problems/longest-palindromic-substring/) | 36.0% | 中等 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [42. 接雨水](https://leetcode-cn.com/problems/trapping-rain-water/) | 59.3% | 困难 | | | | [70. 爬楼梯](https://leetcode-cn.com/problems/climbing-stairs/) | 53.3% | 简单 | | | | [10. 正则表达式匹配](https://leetcode-cn.com/problems/regular-expression-matching/) | 31.6% | 困难 | | | | [22. 括号生成](https://leetcode-cn.com/problems/generate-parentheses/) | 77.3% | 中等 | | | | [121. 买卖股票的最佳时机](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/) | 57.4% | 简单 | | | | [53. 最大子数组和](https://leetcode-cn.com/problems/maximum-subarray/) | 55.2% | 简单 | | | | [152. 乘积最大子数组](https://leetcode-cn.com/problems/maximum-product-subarray/) | 42.3% | 中等 | | | | [72. 编辑距离](https://leetcode-cn.com/problems/edit-distance/) | 61.6% | 困难 | | | | [45. 跳跃游戏 II](https://leetcode-cn.com/problems/jump-game-ii/) | 43.7% | 中等 | | | | [124. 二叉树中的最大路径和](https://leetcode-cn.com/problems/binary-tree-maximum-path-sum/) | 44.7% | 困难 | | | | [32. 最长有效括号](https://leetcode-cn.com/problems/longest-valid-parentheses/) | 35.8% | 困难 | | | | [198. 打家劫舍](https://leetcode-cn.com/problems/house-robber/) | 52.3% | 中等 | | | | [64. 最小路径和](https://leetcode-cn.com/problems/minimum-path-sum/) | 69.0% | 中等 | | | | [面试题 17.24. 最大子矩阵](https://leetcode-cn.com/problems/max-submatrix-lcci/) | 52.3% | 困难 | | | | [剑指 Offer 42. 连续子数组的最大和](https://leetcode-cn.com/problems/lian-xu-zi-shu-zu-de-zui-da-he-lcof/) | 60.6% | 简单 | | | | [300. 最长递增子序列](https://leetcode-cn.com/problems/longest-increasing-subsequence/) | 52.4% | 中等 | | | | [673. 最长递增子序列的个数](https://leetcode-cn.com/problems/number-of-longest-increasing-subsequence/) | 43.7% | 中等 | | | | [139. 单词拆分](https://leetcode-cn.com/problems/word-break/) | 52.1% | 中等 | | | | [55. 跳跃游戏](https://leetcode-cn.com/problems/jump-game/) | 43.4% | 中等 | | | | [309. 最佳买卖股票时机含冷冻期](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/) | 61.8% | 中等 | | | | [剑指 Offer 10- I. 斐波那契数列](https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof/) | 36.1% | 简单 | | | | [343. 整数拆分](https://leetcode-cn.com/problems/integer-break/) | 61.1% | 中等 | | | | [516. 最长回文子序列](https://leetcode-cn.com/problems/longest-palindromic-subsequence/) | 65.9% | 中等 | | | | [322. 零钱兑换](https://leetcode-cn.com/problems/coin-change/) | 44.9% | 中等 | | | | [96. 不同的二叉搜索树](https://leetcode-cn.com/problems/unique-binary-search-trees/) | 69.9% | 中等 | | | | [337. 打家劫舍 III](https://leetcode-cn.com/problems/house-robber-iii/) | 60.8% | 中等 | | | | [221. 最大正方形](https://leetcode-cn.com/problems/maximal-square/) | 48.1% | 中等 | | | | [583. 两个字符串的删除操作](https://leetcode-cn.com/problems/delete-operation-for-two-strings/) | 62.9% | 中等 | | | | [剑指 Offer 46. 把数字翻译成字符串](https://leetcode-cn.com/problems/ba-shu-zi-fan-yi-cheng-zi-fu-chuan-lcof/) | 53.1% | 中等 | | | | [62. 不同路径](https://leetcode-cn.com/problems/unique-paths/) | 66.6% | 中等 | | | | [678. 有效的括号字符串](https://leetcode-cn.com/problems/valid-parenthesis-string/) | 38.7% | 中等 | | | | [剑指 Offer 13. 机器人的运动范围](https://leetcode-cn.com/problems/ji-qi-ren-de-yun-dong-fan-wei-lcof/) | 52.9% | 中等 | | | | [509. 斐波那契数](https://leetcode-cn.com/problems/fibonacci-number/) | 67.0% | 简单 | | | | [91. 解码方法](https://leetcode-cn.com/problems/decode-ways/) | 31.5% | 中等 | | | | [1143. 最长公共子序列](https://leetcode-cn.com/problems/longest-common-subsequence/) | 63.9% | 中等 | | | | [689. 三个无重叠子数组的最大和](https://leetcode-cn.com/problems/maximum-sum-of-3-non-overlapping-subarrays/) | 56.2% | 困难 | | | | [233. 数字 1 的个数](https://leetcode-cn.com/problems/number-of-digit-one/) | 47.8% | 困难 | | | | [279. 完全平方数](https://leetcode-cn.com/problems/perfect-squares/) | 63.8% | 中等 | | | | [剑指 Offer 10- II. 青蛙跳台阶问题](https://leetcode-cn.com/problems/qing-wa-tiao-tai-jie-wen-ti-lcof/) | 44.8% | 简单 | | | | [213. 打家劫舍 II](https://leetcode-cn.com/problems/house-robber-ii/) | 43.5% | 中等 | | | | [118. 杨辉三角](https://leetcode-cn.com/problems/pascals-triangle/) | 73.9% | 简单 | | | | [416. 分割等和子集](https://leetcode-cn.com/problems/partition-equal-subset-sum/) | 51.1% | 中等 | | | | [397. 整数替换](https://leetcode-cn.com/problems/integer-replacement/) | 43.2% | 中等 | | | | [123. 买卖股票的最佳时机 III](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii/) | 54.4% | 困难 | | | | [526. 优美的排列](https://leetcode-cn.com/problems/beautiful-arrangement/) | 73.4% | 中等 | | | | [剑指 Offer 63. 股票的最大利润](https://leetcode-cn.com/problems/gu-piao-de-zui-da-li-run-lcof/) | 63.5% | 中等 | | | | [188. 买卖股票的最佳时机 IV](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iv/) | 40.0% | 困难 | | | | [629. K个逆序对数组](https://leetcode-cn.com/problems/k-inverse-pairs-array/) | 52.2% | 困难 | | | | [44. 通配符匹配](https://leetcode-cn.com/problems/wildcard-matching/) | 32.9% | 困难 | | | | [488. 祖玛游戏](https://leetcode-cn.com/problems/zuma-game/) | 52.5% | 困难 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [458. 可怜的小猪](https://leetcode-cn.com/problems/poor-pigs/) | 69.8% | 困难 | | | | [740. 删除并获得点数](https://leetcode-cn.com/problems/delete-and-earn/) | 62.8% | 中等 | | | | [95. 不同的二叉搜索树 II](https://leetcode-cn.com/problems/unique-binary-search-trees-ii/) | 71.0% | 中等 | | | | [518. 零钱兑换 II](https://leetcode-cn.com/problems/coin-change-2/) | 66.6% | 中等 | | | | [1218. 最长定差子序列](https://leetcode-cn.com/problems/longest-arithmetic-subsequence-of-given-difference/) | 51.5% | 中等 | | | | [847. 访问所有节点的最短路径](https://leetcode-cn.com/problems/shortest-path-visiting-all-nodes/) | 67.8% | 困难 | | | | [122. 买卖股票的最佳时机 II](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/) | 69.3% | 中等 | | | | [647. 回文子串](https://leetcode-cn.com/problems/palindromic-substrings/) | 66.0% | 中等 | | | | [115. 不同的子序列](https://leetcode-cn.com/problems/distinct-subsequences/) | 52.1% | 困难 | | | | [718. 最长重复子数组](https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray/) | 56.5% | 中等 | | | | [410. 分割数组的最大值](https://leetcode-cn.com/problems/split-array-largest-sum/) | 57.1% | 困难 | | | | [542. 01 矩阵](https://leetcode-cn.com/problems/01-matrix/) | 45.8% | 中等 | | | | [787. K 站中转内最便宜的航班](https://leetcode-cn.com/problems/cheapest-flights-within-k-stops/) | 38.9% | 中等 | | | | [435. 无重叠区间](https://leetcode-cn.com/problems/non-overlapping-intervals/) | 50.7% | 中等 | | | | [LCP 36. 最多牌组数](https://leetcode-cn.com/problems/Up5XYM/) | 27.9% | 困难 | | | | [剑指 Offer 60. n个骰子的点数](https://leetcode-cn.com/problems/nge-tou-zi-de-dian-shu-lcof/) | 56.6% | 中等 | | | | [剑指 Offer II 095. 最长公共子序列](https://leetcode-cn.com/problems/qJnOS7/) | 65.5% | 中等 | | | | [131. 分割回文串](https://leetcode-cn.com/problems/palindrome-partitioning/) | 72.4% | 中等 | | | | [375. 猜数字大小 II](https://leetcode-cn.com/problems/guess-number-higher-or-lower-ii/) | 60.3% | 中等 | | | | [887. 鸡蛋掉落](https://leetcode-cn.com/problems/super-egg-drop/) | 29.1% | 困难 | | | | [1048. 最长字符串链](https://leetcode-cn.com/problems/longest-string-chain/) | 46.5% | 中等 | | | | [413. 等差数列划分](https://leetcode-cn.com/problems/arithmetic-slices/) | 69.0% | 中等 | | | | [312. 戳气球](https://leetcode-cn.com/problems/burst-balloons/) | 68.6% | 困难 | | | | [313. 超级丑数](https://leetcode-cn.com/problems/super-ugly-number/) | 61.1% | 中等 | | | | [329. 矩阵中的最长递增路径](https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix/) | 49.2% | 困难 | | | | [剑指 Offer 14- I. 剪绳子](https://leetcode-cn.com/problems/jian-sheng-zi-lcof/) | 57.1% | 中等 | | | | [494. 目标和](https://leetcode-cn.com/problems/target-sum/) | 49.1% | 中等 | | | | [174. 地下城游戏](https://leetcode-cn.com/problems/dungeon-game/) | 48.1% | 困难 | | | | [241. 为运算表达式设计优先级](https://leetcode-cn.com/problems/different-ways-to-add-parentheses/) | 73.6% | 中等 | | | | [剑指 Offer 43. 1~n 整数中 1 出现的次数](https://leetcode-cn.com/problems/1nzheng-shu-zhong-1chu-xian-de-ci-shu-lcof/) | 49.2% | 困难 | | | | [剑指 Offer 47. 礼物的最大价值](https://leetcode-cn.com/problems/li-wu-de-zui-da-jie-zhi-lcof/) | 69.1% | 中等 | | | | [264. 丑数 II](https://leetcode-cn.com/problems/ugly-number-ii/) | 58.2% | 中等 | | | | [85. 最大矩形](https://leetcode-cn.com/problems/maximal-rectangle/) | 52.0% | 困难 | | | | [698. 划分为k个相等的子集](https://leetcode-cn.com/problems/partition-to-k-equal-sum-subsets/) | 45.1% | 中等 | | | | [1646. 获取生成数组中的最大值](https://leetcode-cn.com/problems/get-maximum-in-generated-array/) | 53.4% | 简单 | | | | [838. 推多米诺](https://leetcode-cn.com/problems/push-dominoes/) | 50.1% | 中等 | | | | [639. 解码方法 II](https://leetcode-cn.com/problems/decode-ways-ii/) | 37.6% | 困难 | | | | [746. 使用最小花费爬楼梯](https://leetcode-cn.com/problems/min-cost-climbing-stairs/) | 60.1% | 简单 | | | | [552. 学生出勤记录 II](https://leetcode-cn.com/problems/student-attendance-record-ii/) | 57.7% | 困难 | | | | [LCP 07. 传递信息](https://leetcode-cn.com/problems/chuan-di-xin-xi/) | 76.6% | 简单 | | | | [剑指 Offer 49. 丑数](https://leetcode-cn.com/problems/chou-shu-lcof/) | 65.2% | 中等 | | | | [392. 判断子序列](https://leetcode-cn.com/problems/is-subsequence/) | 51.7% | 简单 | | | | [600. 不含连续1的非负整数](https://leetcode-cn.com/problems/non-negative-integers-without-consecutive-ones/) | 48.2% | 困难 | | | | [918. 环形子数组的最大和](https://leetcode-cn.com/problems/maximum-sum-circular-subarray/) | 36.3% | 中等 | | | | [486. 预测赢家](https://leetcode-cn.com/problems/predict-the-winner/) | 58.8% | 中等 | | | | [638. 大礼包](https://leetcode-cn.com/problems/shopping-offers/) | 64.6% | 中等 | | | | [LCP 10. 二叉树任务调度](https://leetcode-cn.com/problems/er-cha-shu-ren-wu-diao-du/) | 59.0% | 困难 | | | | [446. 等差数列划分 II - 子序列](https://leetcode-cn.com/problems/arithmetic-slices-ii-subsequence/) | 55.0% | 困难 | | | | [338. 比特位计数](https://leetcode-cn.com/problems/counting-bits/) | 78.7% | 简单 | | ### 数学 | | [2. 两数相加](https://leetcode-cn.com/problems/add-two-numbers/) | 41.2% | 中等 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [7. 整数反转](https://leetcode-cn.com/problems/reverse-integer/) | 35.1% | 中等 | | | | [70. 爬楼梯](https://leetcode-cn.com/problems/climbing-stairs/) | 53.3% | 简单 | | | | [13. 罗马数字转整数](https://leetcode-cn.com/problems/roman-to-integer/) | 62.9% | 简单 | | | | [189. 轮转数组](https://leetcode-cn.com/problems/rotate-array/) | 44.6% | 中等 | | | | [9. 回文数](https://leetcode-cn.com/problems/palindrome-number/) | 57.9% | 简单 | | | | [43. 字符串相乘](https://leetcode-cn.com/problems/multiply-strings/) | 45.0% | 中等 | | | | [415. 字符串相加](https://leetcode-cn.com/problems/add-strings/) | 54.2% | 简单 | | | | [69. Sqrt(x)](https://leetcode-cn.com/problems/sqrtx/) | 39.1% | 简单 | | | | [剑指 Offer 62. 圆圈中最后剩下的数字](https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof/) | 65.7% | 简单 | | | | [400. 第 N 位数字](https://leetcode-cn.com/problems/nth-digit/) | 45.5% | 中等 | | | | [50. Pow(x, n)](https://leetcode-cn.com/problems/powx-n/) | 37.8% | 中等 | | | | [剑指 Offer 10- I. 斐波那契数列](https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof/) | 36.1% | 简单 | | | | [343. 整数拆分](https://leetcode-cn.com/problems/integer-break/) | 61.1% | 中等 | | | | [679. 24 点游戏](https://leetcode-cn.com/problems/24-game/) | 54.0% | 困难 | | | | [12. 整数转罗马数字](https://leetcode-cn.com/problems/integer-to-roman/) | 66.4% | 中等 | | | | [96. 不同的二叉搜索树](https://leetcode-cn.com/problems/unique-binary-search-trees/) | 69.9% | 中等 | | | | [29. 两数相除](https://leetcode-cn.com/problems/divide-two-integers/) | 22.1% | 中等 | | | | [48. 旋转图像](https://leetcode-cn.com/problems/rotate-image/) | 73.7% | 中等 | | | | [62. 不同路径](https://leetcode-cn.com/problems/unique-paths/) | 66.6% | 中等 | | | | [223. 矩形面积](https://leetcode-cn.com/problems/rectangle-area/) | 52.6% | 中等 | | | | [509. 斐波那契数](https://leetcode-cn.com/problems/fibonacci-number/) | 67.0% | 简单 | | | | [67. 二进制求和](https://leetcode-cn.com/problems/add-binary/) | 54.1% | 简单 | | | | [233. 数字 1 的个数](https://leetcode-cn.com/problems/number-of-digit-one/) | 47.8% | 困难 | | | | [279. 完全平方数](https://leetcode-cn.com/problems/perfect-squares/) | 63.8% | 中等 | | | | [剑指 Offer 10- II. 青蛙跳台阶问题](https://leetcode-cn.com/problems/qing-wa-tiao-tai-jie-wen-ti-lcof/) | 44.8% | 简单 | | | | [423. 从英文中重建数字](https://leetcode-cn.com/problems/reconstruct-original-digits-from-english/) | 61.2% | 中等 | | | | [202. 快乐数](https://leetcode-cn.com/problems/happy-number/) | 62.2% | 简单 | | | | [剑指 Offer II 001. 整数除法](https://leetcode-cn.com/problems/xoh6Oh/) | 20.7% | 简单 | | | | [面试题 02.05. 链表求和](https://leetcode-cn.com/problems/sum-lists-lcci/) | 46.7% | 中等 | | | | [224. 基本计算器](https://leetcode-cn.com/problems/basic-calculator/) | 41.8% | 困难 | | | | [面试题 01.07. 旋转矩阵](https://leetcode-cn.com/problems/rotate-matrix-lcci/) | 74.8% | 中等 | | | | [371. 两整数之和](https://leetcode-cn.com/problems/sum-of-two-integers/) | 61.3% | 中等 | | | | [458. 可怜的小猪](https://leetcode-cn.com/problems/poor-pigs/) | 69.8% | 困难 | | | | [剑指 Offer 53 - II. 0~n-1中缺失的数字](https://leetcode-cn.com/problems/que-shi-de-shu-zi-lcof/) | 44.8% | 简单 | | | | [470. 用 Rand7() 实现 Rand10()](https://leetcode-cn.com/problems/implement-rand10-using-rand7/) | 54.8% | 中等 | | | | [319. 灯泡开关](https://leetcode-cn.com/problems/bulb-switcher/) | 57.1% | 中等 | | | | [453. 最小操作次数使数组元素相等](https://leetcode-cn.com/problems/minimum-moves-to-equal-array-elements/) | 61.2% | 简单 | | | | [66. 加一](https://leetcode-cn.com/problems/plus-one/) | 46.2% | 简单 | | | | [剑指 Offer 17. 打印从1到最大的n位数](https://leetcode-cn.com/problems/da-yin-cong-1dao-zui-da-de-nwei-shu-lcof/) | 77.8% | 简单 | | | | [384. 打乱数组](https://leetcode-cn.com/problems/shuffle-an-array/) | 60.8% | 中等 | | | | [227. 基本计算器 II](https://leetcode-cn.com/problems/basic-calculator-ii/) | 43.8% | 中等 | | | | [166. 分数到小数](https://leetcode-cn.com/problems/fraction-to-recurring-decimal/) | 33.2% | 中等 | | | | [剑指 Offer 60. n个骰子的点数](https://leetcode-cn.com/problems/nge-tou-zi-de-dian-shu-lcof/) | 56.6% | 中等 | | | | [剑指 Offer 57 - II. 和为s的连续正数序列](https://leetcode-cn.com/problems/he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof/) | 71.0% | 简单 | | | | [670. 最大交换](https://leetcode-cn.com/problems/maximum-swap/) | 45.7% | 中等 | | | | [171. Excel 表列序号](https://leetcode-cn.com/problems/excel-sheet-column-number/) | 71.7% | 简单 | | | | [273. 整数转换英文表示](https://leetcode-cn.com/problems/integer-to-english-words/) | 36.6% | 困难 | | | | [375. 猜数字大小 II](https://leetcode-cn.com/problems/guess-number-higher-or-lower-ii/) | 60.3% | 中等 | | | | [887. 鸡蛋掉落](https://leetcode-cn.com/problems/super-egg-drop/) | 29.1% | 困难 | | ### 深度优先搜索 | | [200. 岛屿数量](https://leetcode-cn.com/problems/number-of-islands/) | 56.5% | 中等 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [124. 二叉树中的最大路径和](https://leetcode-cn.com/problems/binary-tree-maximum-path-sum/) | 44.7% | 困难 | | | | [226. 翻转二叉树](https://leetcode-cn.com/problems/invert-binary-tree/) | 78.8% | 简单 | | | | [543. 二叉树的直径](https://leetcode-cn.com/problems/diameter-of-binary-tree/) | 55.8% | 简单 | | | | [695. 岛屿的最大面积](https://leetcode-cn.com/problems/max-area-of-island/) | 66.9% | 中等 | | | | [剑指 Offer 26. 树的子结构](https://leetcode-cn.com/problems/shu-de-zi-jie-gou-lcof/) | 46.7% | 中等 | | | | [236. 二叉树的最近公共祖先](https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/) | 68.4% | 中等 | | | | [101. 对称二叉树](https://leetcode-cn.com/problems/symmetric-tree/) | 56.8% | 简单 | | | | [337. 打家劫舍 III](https://leetcode-cn.com/problems/house-robber-iii/) | 60.8% | 中等 | | | | [剑指 Offer 13. 机器人的运动范围](https://leetcode-cn.com/problems/ji-qi-ren-de-yun-dong-fan-wei-lcof/) | 52.9% | 中等 | | | | [104. 二叉树的最大深度](https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/) | 76.8% | 简单 | | | | [207. 课程表](https://leetcode-cn.com/problems/course-schedule/) | 54.1% | 中等 | | | | [98. 验证二叉搜索树](https://leetcode-cn.com/problems/validate-binary-search-tree/) | 35.4% | 中等 | | | | [437. 路径总和 III](https://leetcode-cn.com/problems/path-sum-iii/) | 57.5% | 中等 | | | | [617. 合并二叉树](https://leetcode-cn.com/problems/merge-two-binary-trees/) | 78.7% | 简单 | | | | [112. 路径总和](https://leetcode-cn.com/problems/path-sum/) | 52.8% | 简单 | | | | [145. 二叉树的后序遍历](https://leetcode-cn.com/problems/binary-tree-postorder-traversal/) | 75.3% | 简单 | | | | [404. 左叶子之和](https://leetcode-cn.com/problems/sum-of-left-leaves/) | 59.1% | 简单 | | | | [剑指 Offer 36. 二叉搜索树与双向链表](https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof/) | 65.4% | 中等 | | | | [652. 寻找重复的子树](https://leetcode-cn.com/problems/find-duplicate-subtrees/) | 57.3% | 中等 | | | | [863. 二叉树中所有距离为 K 的结点](https://leetcode-cn.com/problems/all-nodes-distance-k-in-binary-tree/) | 60.7% | 中等 | | | | [743. 网络延迟时间](https://leetcode-cn.com/problems/network-delay-time/) | 52.8% | 中等 | | | | [733. 图像渲染](https://leetcode-cn.com/problems/flood-fill/) | 58.0% | 简单 | | | | [787. K 站中转内最便宜的航班](https://leetcode-cn.com/problems/cheapest-flights-within-k-stops/) | 38.9% | 中等 | | | | [113. 路径总和 II](https://leetcode-cn.com/problems/path-sum-ii/) | 62.9% | 中等 | | | | [297. 二叉树的序列化与反序列化](https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/) | 56.5% | 困难 | | | | [129. 求根节点到叶节点数字之和](https://leetcode-cn.com/problems/sum-root-to-leaf-numbers/) | 68.8% | 中等 | | | | [剑指 Offer 37. 序列化二叉树](https://leetcode-cn.com/problems/xu-lie-hua-er-cha-shu-lcof/) | 56.4% | 困难 | | | | [257. 二叉树的所有路径](https://leetcode-cn.com/problems/binary-tree-paths/) | 68.8% | 简单 | | | | [94. 二叉树的中序遍历](https://leetcode-cn.com/problems/binary-tree-inorder-traversal/) | 75.6% | 简单 | | | | [116. 填充每个节点的下一个右侧节点指针](https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node/) | 70.8% | 中等 | | | | [987. 二叉树的垂序遍历](https://leetcode-cn.com/problems/vertical-order-traversal-of-a-binary-tree/) | 53.3% | 困难 | | | | [110. 平衡二叉树](https://leetcode-cn.com/problems/balanced-binary-tree/) | 56.5% | 简单 | | | | [329. 矩阵中的最长递增路径](https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix/) | 49.2% | 困难 | | | | [剑指 Offer 34. 二叉树中和为某一值的路径](https://leetcode-cn.com/problems/er-cha-shu-zhong-he-wei-mou-yi-zhi-de-lu-jing-lcof/) | 58.1% | 中等 | | | | [463. 岛屿的周长](https://leetcode-cn.com/problems/island-perimeter/) | 70.5% | 简单 | | | | [剑指 Offer 68 - II. 二叉树的最近公共祖先](https://leetcode-cn.com/problems/er-cha-shu-de-zui-jin-gong-gong-zu-xian-lcof/) | 70.2% | 简单 | | | | [199. 二叉树的右视图](https://leetcode-cn.com/problems/binary-tree-right-side-view/) | 65.3% | 中等 | | | | [671. 二叉树中第二小的节点](https://leetcode-cn.com/problems/second-minimum-node-in-a-binary-tree/) | 48.5% | 简单 | | | | [802. 找到最终的安全状态](https://leetcode-cn.com/problems/find-eventual-safe-states/) | 57.8% | 中等 | | | | [144. 二叉树的前序遍历](https://leetcode-cn.com/problems/binary-tree-preorder-traversal/) | 70.6% | 简单 | | | | [235. 二叉搜索树的最近公共祖先](https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-search-tree/) | 66.9% | 简单 | | | | [572. 另一棵树的子树](https://leetcode-cn.com/problems/subtree-of-another-tree/) | 47.4% | 简单 | | | | [1034. 边界着色](https://leetcode-cn.com/problems/coloring-a-border/) | 56.0% | 中等 | | | | [100. 相同的树](https://leetcode-cn.com/problems/same-tree/) | 59.9% | 简单 | | | | [LCP 07. 传递信息](https://leetcode-cn.com/problems/chuan-di-xin-xi/) | 76.6% | 简单 | | | | [130. 被围绕的区域](https://leetcode-cn.com/problems/surrounded-regions/) | 45.0% | 中等 | | | | [386. 字典序排数](https://leetcode-cn.com/problems/lexicographical-numbers/) | 75.0% | 中等 | | | | [LCP 10. 二叉树任务调度](https://leetcode-cn.com/problems/er-cha-shu-ren-wu-diao-du/) | 59.0% | 困难 | | | | [111. 二叉树的最小深度](https://leetcode-cn.com/problems/minimum-depth-of-binary-tree/) | 49.3% | 简单 | | ### 排序 | | [217. 存在重复元素](https://leetcode-cn.com/problems/contains-duplicate/) | 55.6% | 简单 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [15. 三数之和](https://leetcode-cn.com/problems/3sum/) | 34.3% | 中等 | | | | [16. 最接近的三数之和](https://leetcode-cn.com/problems/3sum-closest/) | 45.8% | 中等 | | | | [剑指 Offer 03. 数组中重复的数字](https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof/) | 67.9% | 简单 | | | | [56. 合并区间](https://leetcode-cn.com/problems/merge-intervals/) | 47.6% | 中等 | | | | [611. 有效三角形的个数](https://leetcode-cn.com/problems/valid-triangle-number/) | 53.2% | 中等 | | | | [88. 合并两个有序数组](https://leetcode-cn.com/problems/merge-sorted-array/) | 52.0% | 简单 | | | | [215. 数组中的第K个最大元素](https://leetcode-cn.com/problems/kth-largest-element-in-an-array/) | 64.7% | 中等 | | | | [912. 排序数组](https://leetcode-cn.com/problems/sort-an-array/) | 55.7% | 中等 | | | | [面试题 01.01. 判定字符是否唯一](https://leetcode-cn.com/problems/is-unique-lcci/) | 71.5% | 简单 | | | | [881. 救生艇](https://leetcode-cn.com/problems/boats-to-save-people/) | 53.8% | 中等 | | | | [179. 最大数](https://leetcode-cn.com/problems/largest-number/) | 41.0% | 中等 | | | | [面试题 17.14. 最小K个数](https://leetcode-cn.com/problems/smallest-k-lcci/) | 59.6% | 中等 | | | | [18. 四数之和](https://leetcode-cn.com/problems/4sum/) | 39.5% | 中等 | | | | [349. 两个数组的交集](https://leetcode-cn.com/problems/intersection-of-two-arrays/) | 73.9% | 简单 | | | | [剑指 Offer 45. 把数组排成最小的数](https://leetcode-cn.com/problems/ba-shu-zu-pai-cheng-zui-xiao-de-shu-lcof/) | 55.9% | 中等 | | | | [剑指 Offer 40. 最小的k个数](https://leetcode-cn.com/problems/zui-xiao-de-kge-shu-lcof/) | 57.2% | 简单 | | | | [169. 多数元素](https://leetcode-cn.com/problems/majority-element/) | 66.5% | 简单 | | | | [455. 分发饼干](https://leetcode-cn.com/problems/assign-cookies/) | 57.5% | 简单 | | | | [350. 两个数组的交集 II](https://leetcode-cn.com/problems/intersection-of-two-arrays-ii/) | 55.4% | 简单 | | | | [295. 数据流的中位数](https://leetcode-cn.com/problems/find-median-from-data-stream/) | 52.3% | 困难 | | | | [347. 前 K 个高频元素](https://leetcode-cn.com/problems/top-k-frequent-elements/) | 62.4% | 中等 | | | | [面试题 10.01. 合并排序的数组](https://leetcode-cn.com/problems/sorted-merge-lcci/) | 55.7% | 简单 | | | | [977. 有序数组的平方](https://leetcode-cn.com/problems/squares-of-a-sorted-array/) | 69.9% | 简单 | | | | [253. 会议室 II](https://leetcode-cn.com/problems/meeting-rooms-ii/)![plus](https://static.leetcode-cn.com/cn-mono-assets/production/assets/plus.31398c34.svg) | 50.6% | 中等 | | | | [148. 排序链表](https://leetcode-cn.com/problems/sort-list/) | 66.6% | 中等 | | | | [581. 最短无序连续子数组](https://leetcode-cn.com/problems/shortest-unsorted-continuous-subarray/) | 40.7% | 中等 | | | | [229. 求众数 II](https://leetcode-cn.com/problems/majority-element-ii/) | 53.4% | 中等 | | | | [49. 字母异位词分组](https://leetcode-cn.com/problems/group-anagrams/) | 66.8% | 中等 | | | | [414. 第三大的数](https://leetcode-cn.com/problems/third-maximum-number/) | 39.4% | 简单 | | | | [621. 任务调度器](https://leetcode-cn.com/problems/task-scheduler/) | 57.5% | 中等 | | | | [435. 无重叠区间](https://leetcode-cn.com/problems/non-overlapping-intervals/) | 50.7% | 中等 | | | | [LCP 36. 最多牌组数](https://leetcode-cn.com/problems/Up5XYM/) | 27.9% | 困难 | | | | [524. 通过删除字母匹配到字典里最长单词](https://leetcode-cn.com/problems/longest-word-in-dictionary-through-deleting/) | 49.7% | 中等 | | | | [75. 颜色分类](https://leetcode-cn.com/problems/sort-colors/) | 60.1% | 中等 | | | | [剑指 Offer 21. 调整数组顺序使奇数位于偶数前面](https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof/) | 64.6% | 简单 | | | | [451. 根据字符出现频率排序](https://leetcode-cn.com/problems/sort-characters-by-frequency/) | 71.3% | 中等 | | | | [506. 相对名次](https://leetcode-cn.com/problems/relative-ranks/) | 65.4% | 简单 | | | | [164. 最大间距](https://leetcode-cn.com/problems/maximum-gap/) | 60.8% | 困难 | | | | [475. 供暖器](https://leetcode-cn.com/problems/heaters/) | 40.2% | 中等 | | | | [147. 对链表进行插入排序](https://leetcode-cn.com/problems/insertion-sort-list/) | 68.4% | 中等 | | | | [406. 根据身高重建队列](https://leetcode-cn.com/problems/queue-reconstruction-by-height/) | 74.1% | 中等 | | | | [767. 重构字符串](https://leetcode-cn.com/problems/reorganize-string/) | 47.8% | 中等 | | | | [594. 最长和谐子序列](https://leetcode-cn.com/problems/longest-harmonious-subsequence/) | 56.6% | 简单 | | | | [452. 用最少数量的箭引爆气球](https://leetcode-cn.com/problems/minimum-number-of-arrows-to-burst-balloons/) | 50.8% | 中等 | | | | [剑指 Offer II 007. 数组中和为 0 的三个数](https://leetcode-cn.com/problems/1fGaJU/) | 45.0% | 中等 | | | | [502. IPO](https://leetcode-cn.com/problems/ipo/) | 44.1% | 困难 | | | | [1094. 拼车](https://leetcode-cn.com/problems/car-pooling/) | 58.7% | 中等 | | | | [268. 丢失的数字](https://leetcode-cn.com/problems/missing-number/) | 65.2% | 简单 | | | | [剑指 Offer 61. 扑克牌中的顺子](https://leetcode-cn.com/problems/bu-ke-pai-zhong-de-shun-zi-lcof/) | 46.1% | 简单 | | ### 广度优先搜索 | | 200. 岛屿数量 | 56.5% | 中等 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [102. 二叉树的层序遍历](https://leetcode-cn.com/problems/binary-tree-level-order-traversal/) | 64.3% | 中等 | | | | [226. 翻转二叉树](https://leetcode-cn.com/problems/invert-binary-tree/) | 78.8% | 简单 | | | | [103. 二叉树的锯齿形层序遍历](https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal/) | 57.2% | 中等 | | | | [695. 岛屿的最大面积](https://leetcode-cn.com/problems/max-area-of-island/) | 66.9% | 中等 | | | | [322. 零钱兑换](https://leetcode-cn.com/problems/coin-change/) | 44.9% | 中等 | | | | [101. 对称二叉树](https://leetcode-cn.com/problems/symmetric-tree/) | 56.8% | 简单 | | | | [剑指 Offer 13. 机器人的运动范围](https://leetcode-cn.com/problems/ji-qi-ren-de-yun-dong-fan-wei-lcof/) | 52.9% | 中等 | | | | [104. 二叉树的最大深度](https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/) | 76.8% | 简单 | | | | [207. 课程表](https://leetcode-cn.com/problems/course-schedule/) | 54.1% | 中等 | | | | [279. 完全平方数](https://leetcode-cn.com/problems/perfect-squares/) | 63.8% | 中等 | | | | [407. 接雨水 II](https://leetcode-cn.com/problems/trapping-rain-water-ii/) | 58.0% | 困难 | | | | [617. 合并二叉树](https://leetcode-cn.com/problems/merge-two-binary-trees/) | 78.7% | 简单 | | | | [488. 祖玛游戏](https://leetcode-cn.com/problems/zuma-game/) | 52.5% | 困难 | | | | [301. 删除无效的括号](https://leetcode-cn.com/problems/remove-invalid-parentheses/) | 54.8% | 困难 | | | | [404. 左叶子之和](https://leetcode-cn.com/problems/sum-of-left-leaves/) | 59.1% | 简单 | | | | [652. 寻找重复的子树](https://leetcode-cn.com/problems/find-duplicate-subtrees/) | 57.3% | 中等 | | | | [815. 公交路线](https://leetcode-cn.com/problems/bus-routes/) | 43.5% | 困难 | | | | [847. 访问所有节点的最短路径](https://leetcode-cn.com/problems/shortest-path-visiting-all-nodes/) | 67.8% | 困难 | | | | [863. 二叉树中所有距离为 K 的结点](https://leetcode-cn.com/problems/all-nodes-distance-k-in-binary-tree/) | 60.7% | 中等 | | | | [743. 网络延迟时间](https://leetcode-cn.com/problems/network-delay-time/) | 52.8% | 中等 | | | | [733. 图像渲染](https://leetcode-cn.com/problems/flood-fill/) | 58.0% | 简单 | | | | [542. 01 矩阵](https://leetcode-cn.com/problems/01-matrix/) | 45.8% | 中等 | | | | [787. K 站中转内最便宜的航班](https://leetcode-cn.com/problems/cheapest-flights-within-k-stops/) | 38.9% | 中等 | | | | [297. 二叉树的序列化与反序列化](https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/) | 56.5% | 困难 | | | | [剑指 Offer 37. 序列化二叉树](https://leetcode-cn.com/problems/xu-lie-hua-er-cha-shu-lcof/) | 56.4% | 困难 | | | | [116. 填充每个节点的下一个右侧节点指针](https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node/) | 70.8% | 中等 | | | | [987. 二叉树的垂序遍历](https://leetcode-cn.com/problems/vertical-order-traversal-of-a-binary-tree/) | 53.3% | 困难 | | | | [329. 矩阵中的最长递增路径](https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix/) | 49.2% | 困难 | | | | [463. 岛屿的周长](https://leetcode-cn.com/problems/island-perimeter/) | 70.5% | 简单 | | | | [1293. 网格中的最短路径](https://leetcode-cn.com/problems/shortest-path-in-a-grid-with-obstacles-elimination/) | 36.6% | 困难 | | | | [107. 二叉树的层序遍历 II](https://leetcode-cn.com/problems/binary-tree-level-order-traversal-ii/) | 70.3% | 中等 | | | | [1091. 二进制矩阵中的最短路径](https://leetcode-cn.com/problems/shortest-path-in-binary-matrix/) | 38.1% | 中等 | | | | [199. 二叉树的右视图](https://leetcode-cn.com/problems/binary-tree-right-side-view/) | 65.3% | 中等 | | ### 贪心 | | [11. 盛最多水的容器](https://leetcode-cn.com/problems/container-with-most-water/) | 62.1% | 中等 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [135. 分发糖果](https://leetcode-cn.com/problems/candy/) | 48.7% | 困难 | | | | [611. 有效三角形的个数](https://leetcode-cn.com/problems/valid-triangle-number/) | 53.2% | 中等 | | | | [45. 跳跃游戏 II](https://leetcode-cn.com/problems/jump-game-ii/) | 43.7% | 中等 | | | | [881. 救生艇](https://leetcode-cn.com/problems/boats-to-save-people/) | 53.8% | 中等 | | | | [179. 最大数](https://leetcode-cn.com/problems/largest-number/) | 41.0% | 中等 | | | | [55. 跳跃游戏](https://leetcode-cn.com/problems/jump-game/) | 43.4% | 中等 | | | | [剑指 Offer 45. 把数组排成最小的数](https://leetcode-cn.com/problems/ba-shu-zu-pai-cheng-zui-xiao-de-shu-lcof/) | 55.9% | 中等 | | | | [455. 分发饼干](https://leetcode-cn.com/problems/assign-cookies/) | 57.5% | 简单 | | | | [678. 有效的括号字符串](https://leetcode-cn.com/problems/valid-parenthesis-string/) | 38.7% | 中等 | | | | [1488. 避免洪水泛滥](https://leetcode-cn.com/problems/avoid-flood-in-the-city/) | 24.5% | 中等 | | | | [134. 加油站](https://leetcode-cn.com/problems/gas-station/) | 56.4% | 中等 | | | | [397. 整数替换](https://leetcode-cn.com/problems/integer-replacement/) | 43.2% | 中等 | | | | [253. 会议室 II](https://leetcode-cn.com/problems/meeting-rooms-ii/)![plus](https://static.leetcode-cn.com/cn-mono-assets/production/assets/plus.31398c34.svg) | 50.6% | 中等 | | | | [316. 去除重复字母](https://leetcode-cn.com/problems/remove-duplicate-letters/) | 47.7% | 中等 | | | | [402. 移掉 K 位数字](https://leetcode-cn.com/problems/remove-k-digits/) | 32.7% | 中等 | | | | [517. 超级洗衣机](https://leetcode-cn.com/problems/super-washing-machines/) | 51.0% | 困难 | | | | [581. 最短无序连续子数组](https://leetcode-cn.com/problems/shortest-unsorted-continuous-subarray/) | 40.7% | 中等 | | | | [44. 通配符匹配](https://leetcode-cn.com/problems/wildcard-matching/) | 32.9% | 困难 | | | | [122. 买卖股票的最佳时机 II](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/) | 69.3% | 中等 | | | | [409. 最长回文串](https://leetcode-cn.com/problems/longest-palindrome/) | 55.6% | 简单 | | ### 二叉树 | | [102. 二叉树的层序遍历](https://leetcode-cn.com/problems/binary-tree-level-order-traversal/) | 64.3% | 中等 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [124. 二叉树中的最大路径和](https://leetcode-cn.com/problems/binary-tree-maximum-path-sum/) | 44.7% | 困难 | | | | [226. 翻转二叉树](https://leetcode-cn.com/problems/invert-binary-tree/) | 78.8% | 简单 | | | | [103. 二叉树的锯齿形层序遍历](https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal/) | 57.2% | 中等 | | | | [543. 二叉树的直径](https://leetcode-cn.com/problems/diameter-of-binary-tree/) | 55.8% | 简单 | | | | [剑指 Offer 26. 树的子结构](https://leetcode-cn.com/problems/shu-de-zi-jie-gou-lcof/) | 46.7% | 中等 | | | | [106. 从中序与后序遍历序列构造二叉树](https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/) | 72.2% | 中等 | | | | [96. 不同的二叉搜索树](https://leetcode-cn.com/problems/unique-binary-search-trees/) | 69.9% | 中等 | | | | [236. 二叉树的最近公共祖先](https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/) | 68.4% | 中等 | | | | [101. 对称二叉树](https://leetcode-cn.com/problems/symmetric-tree/) | 56.8% | 简单 | | | | [337. 打家劫舍 III](https://leetcode-cn.com/problems/house-robber-iii/) | 60.8% | 中等 | | | | [105. 从前序与中序遍历序列构造二叉树](https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/) | 70.7% | 中等 | | | | [104. 二叉树的最大深度](https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/) | 76.8% | 简单 | | | | [98. 验证二叉搜索树](https://leetcode-cn.com/problems/validate-binary-search-tree/) | 35.4% | 中等 | | | | [437. 路径总和 III](https://leetcode-cn.com/problems/path-sum-iii/) | 57.5% | 中等 | | | | [617. 合并二叉树](https://leetcode-cn.com/problems/merge-two-binary-trees/) | 78.7% | 简单 | | | | [剑指 Offer 07. 重建二叉树](https://leetcode-cn.com/problems/zhong-jian-er-cha-shu-lcof/) | 70.0% | 中等 | | | | [112. 路径总和](https://leetcode-cn.com/problems/path-sum/) | 52.8% | 简单 | | | | [145. 二叉树的后序遍历](https://leetcode-cn.com/problems/binary-tree-postorder-traversal/) | 75.3% | 简单 | | | | [404. 左叶子之和](https://leetcode-cn.com/problems/sum-of-left-leaves/) | 59.1% | 简单 | | ### 二分查找 | | [704. 二分查找](https://leetcode-cn.com/problems/binary-search/) | 54.7% | 简单 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [4. 寻找两个正序数组的中位数](https://leetcode-cn.com/problems/median-of-two-sorted-arrays/) | 41.1% | 困难 | | | | [611. 有效三角形的个数](https://leetcode-cn.com/problems/valid-triangle-number/) | 53.2% | 中等 | | | | [剑指 Offer 51. 数组中的逆序对](https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof/) | 48.6% | 困难 | | | | [剑指 Offer 11. 旋转数组的最小数字](https://leetcode-cn.com/problems/xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof/) | 49.2% | 简单 | | | | [278. 第一个错误的版本](https://leetcode-cn.com/problems/first-bad-version/) | 45.2% | 简单 | | | | [69. Sqrt(x)](https://leetcode-cn.com/problems/sqrtx/) | 39.1% | 简单 | | | | [162. 寻找峰值](https://leetcode-cn.com/problems/find-peak-element/) | 49.6% | 中等 | | | | [400. 第 N 位数字](https://leetcode-cn.com/problems/nth-digit/) | 45.5% | 中等 | | | | [300. 最长递增子序列](https://leetcode-cn.com/problems/longest-increasing-subsequence/) | 52.4% | 中等 | | | | [33. 搜索旋转排序数组](https://leetcode-cn.com/problems/search-in-rotated-sorted-array/) | 43.1% | 中等 | | | | [349. 两个数组的交集](https://leetcode-cn.com/problems/intersection-of-two-arrays/) | 73.9% | 简单 | | | | [34. 在排序数组中查找元素的第一个和最后一个位置](https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/) | 42.3% | 中等 | | | | [167. 两数之和 II - 输入有序数组](https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/) | 58.7% | 简单 | | | | [35. 搜索插入位置](https://leetcode-cn.com/problems/search-insert-position/) | 45.8% | 简单 | | | | [1488. 避免洪水泛滥](https://leetcode-cn.com/problems/avoid-flood-in-the-city/) | 24.5% | 中等 | | | | [350. 两个数组的交集 II](https://leetcode-cn.com/problems/intersection-of-two-arrays-ii/) | 55.4% | 简单 | | | | [剑指 Offer 04. 二维数组中的查找](https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof/) | 40.3% | 中等 | | | | [240. 搜索二维矩阵 II](https://leetcode-cn.com/problems/search-a-2d-matrix-ii/) | 49.9% | 中等 | | | | [剑指 Offer 53 - II. 0~n-1中缺失的数字](https://leetcode-cn.com/problems/que-shi-de-shu-zi-lcof/) | 44.8% | 简单 | | ### 矩阵 | | [200. 岛屿数量](https://leetcode-cn.com/problems/number-of-islands/) | 56.5% | 中等 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [54. 螺旋矩阵](https://leetcode-cn.com/problems/spiral-matrix/) | 48.3% | 中等 | | | | [64. 最小路径和](https://leetcode-cn.com/problems/minimum-path-sum/) | 69.0% | 中等 | | | | [面试题 17.24. 最大子矩阵](https://leetcode-cn.com/problems/max-submatrix-lcci/) | 52.3% | 困难 | | | | [59. 螺旋矩阵 II](https://leetcode-cn.com/problems/spiral-matrix-ii/) | 78.0% | 中等 | | | | [695. 岛屿的最大面积](https://leetcode-cn.com/problems/max-area-of-island/) | 66.9% | 中等 | | | | [48. 旋转图像](https://leetcode-cn.com/problems/rotate-image/) | 73.7% | 中等 | | | | [221. 最大正方形](https://leetcode-cn.com/problems/maximal-square/) | 48.1% | 中等 | | | | [36. 有效的数独](https://leetcode-cn.com/problems/valid-sudoku/) | 63.7% | 中等 | | | | [剑指 Offer 04. 二维数组中的查找](https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof/) | 40.3% | 中等 | | | | [37. 解数独](https://leetcode-cn.com/problems/sudoku-solver/) | 67.1% | 困难 | | | | [407. 接雨水 II](https://leetcode-cn.com/problems/trapping-rain-water-ii/) | 58.0% | 困难 | | | | [240. 搜索二维矩阵 II](https://leetcode-cn.com/problems/search-a-2d-matrix-ii/) | 49.9% | 中等 | | | | [剑指 Offer 29. 顺时针打印矩阵](https://leetcode-cn.com/problems/shun-shi-zhen-da-yin-ju-zhen-lcof/) | 43.9% | 简单 | | | | [面试题 01.07. 旋转矩阵](https://leetcode-cn.com/problems/rotate-matrix-lcci/) | 74.8% | 中等 | | | | [79. 单词搜索](https://leetcode-cn.com/problems/word-search/) | 46.0% | 中等 | | | | [73. 矩阵置零](https://leetcode-cn.com/problems/set-matrix-zeroes/) | 61.1% | 中等 | | | | [733. 图像渲染](https://leetcode-cn.com/problems/flood-fill/) | 58.0% | 简单 | | ### 双指针 | | [15. 三数之和](https://leetcode-cn.com/problems/3sum/) | 34.3% | 中等 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [42. 接雨水](https://leetcode-cn.com/problems/trapping-rain-water/) | 59.3% | 困难 | | | | [11. 盛最多水的容器](https://leetcode-cn.com/problems/container-with-most-water/) | 62.1% | 中等 | | | | [16. 最接近的三数之和](https://leetcode-cn.com/problems/3sum-closest/) | 45.8% | 中等 | | | | [611. 有效三角形的个数](https://leetcode-cn.com/problems/valid-triangle-number/) | 53.2% | 中等 | | | | [剑指 Offer 22. 链表中倒数第k个节点](https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof/) | 79.9% | 简单 | | | | [88. 合并两个有序数组](https://leetcode-cn.com/problems/merge-sorted-array/) | 52.0% | 简单 | | | | [143. 重排链表](https://leetcode-cn.com/problems/reorder-list/) | 62.7% | 中等 | | | | [31. 下一个排列](https://leetcode-cn.com/problems/next-permutation/) | 37.3% | 中等 | | | | [283. 移动零](https://leetcode-cn.com/problems/move-zeroes/) | 64.0% | 简单 | | | | [26. 删除有序数组中的重复项](https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/) | 53.6% | 简单 | | | | [189. 轮转数组](https://leetcode-cn.com/problems/rotate-array/) | 44.6% | 中等 | | | | [剑指 Offer 06. 从尾到头打印链表](https://leetcode-cn.com/problems/cong-wei-dao-tou-da-yin-lian-biao-lcof/) | 75.0% | 简单 | | | | [881. 救生艇](https://leetcode-cn.com/problems/boats-to-save-people/) | 53.8% | 中等 | | | | [19. 删除链表的倒数第 N 个结点](https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/) | 43.4% | 中等 | | | | [165. 比较版本号](https://leetcode-cn.com/problems/compare-version-numbers/) | 52.2% | 中等 | | | | [557. 反转字符串中的单词 III](https://leetcode-cn.com/problems/reverse-words-in-a-string-iii/) | 74.3% | 简单 | | | | [18. 四数之和](https://leetcode-cn.com/problems/4sum/) | 39.5% | 中等 | | | | [27. 移除元素](https://leetcode-cn.com/problems/remove-element/) | 59.6% | 简单 | | | | [349. 两个数组的交集](https://leetcode-cn.com/problems/intersection-of-two-arrays/) | 73.9% | 简单 | | | | [82. 删除排序链表中的重复元素 II](https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii/) | 53.2% | 中等 | | | | [141. 环形链表](https://leetcode-cn.com/problems/linked-list-cycle/) | 51.3% | 简单 | | | | [167. 两数之和 II - 输入有序数组](https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/) | 58.7% | 简单 | | | | [350. 两个数组的交集 II](https://leetcode-cn.com/problems/intersection-of-two-arrays-ii/) | 55.4% | 简单 | | | | [295. 数据流的中位数](https://leetcode-cn.com/problems/find-median-from-data-stream/) | 52.3% | 困难 | | | | [28. 实现 strStr()](https://leetcode-cn.com/problems/implement-strstr/) | 40.3% | 简单 | | | | [面试题 10.01. 合并排序的数组](https://leetcode-cn.com/problems/sorted-merge-lcci/) | 55.7% | 简单 | | | | [142. 环形链表 II](https://leetcode-cn.com/problems/linked-list-cycle-ii/) | 55.6% | 中等 | | | | [202. 快乐数](https://leetcode-cn.com/problems/happy-number/) | 62.2% | 简单 | | | | [567. 字符串的排列](https://leetcode-cn.com/problems/permutation-in-string/) | 43.5% | 中等 | | | | [977. 有序数组的平方](https://leetcode-cn.com/problems/squares-of-a-sorted-array/) | 69.9% | 简单 | | | | [253. 会议室 II](https://leetcode-cn.com/problems/meeting-rooms-ii/)![plus](https://static.leetcode-cn.com/cn-mono-assets/production/assets/plus.31398c34.svg) | 50.6% | 中等 | | | | [148. 排序链表](https://leetcode-cn.com/problems/sort-list/) | 66.6% | 中等 | | | | [443. 压缩字符串](https://leetcode-cn.com/problems/string-compression/) | 47.8% | 中等 | | | | [125. 验证回文串](https://leetcode-cn.com/problems/valid-palindrome/) | 47.1% | 简单 | | | | [234. 回文链表](https://leetcode-cn.com/problems/palindrome-linked-list/) | 50.4% | 简单 | | | | [581. 最短无序连续子数组](https://leetcode-cn.com/problems/shortest-unsorted-continuous-subarray/) | 40.7% | 中等 | | | | [344. 反转字符串](https://leetcode-cn.com/problems/reverse-string/) | 77.7% | 简单 | | | | [160. 相交链表](https://leetcode-cn.com/problems/intersection-of-two-linked-lists/) | 62.0% | 简单 | | | | [345. 反转字符串中的元音字母](https://leetcode-cn.com/problems/reverse-vowels-of-a-string/) | 54.0% | 简单 | | | | [541. 反转字符串 II](https://leetcode-cn.com/problems/reverse-string-ii/) | 60.2% | 简单 | | | | [面试题 01.06. 字符串压缩](https://leetcode-cn.com/problems/compress-string-lcci/) | 47.1% | 简单 | | | | [763. 划分字母区间](https://leetcode-cn.com/problems/partition-labels/) | 76.4% | 中等 | | | | [524. 通过删除字母匹配到字典里最长单词](https://leetcode-cn.com/problems/longest-word-in-dictionary-through-deleting/) | 49.7% | 中等 | | | | [剑指 Offer 57 - II. 和为s的连续正数序列](https://leetcode-cn.com/problems/he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof/) | 71.0% | 简单 | | | | [75. 颜色分类](https://leetcode-cn.com/problems/sort-colors/) | 60.1% | 中等 | | | | [876. 链表的中间结点](https://leetcode-cn.com/problems/middle-of-the-linked-list/) | 70.6% | 简单 | | | | [1048. 最长字符串链](https://leetcode-cn.com/problems/longest-string-chain/) | 46.5% | 中等 | | | | [剑指 Offer 21. 调整数组顺序使奇数位于偶数前面](https://leetcode-cn.com/problems/diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof/) | 64.6% | 简单 | | | | [面试题 02.02. 返回倒数第 k 个节点](https://leetcode-cn.com/problems/kth-node-from-end-of-list-lcci/) | 78.0% | 简单 | | ### 数据库 | | [175. 组合两个表](https://leetcode-cn.com/problems/combine-two-tables/) | 73.6% | 简单 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [176. 第二高的薪水](https://leetcode-cn.com/problems/second-highest-salary/) | 35.4% | 中等 | | | | [185. 部门工资前三高的所有员工](https://leetcode-cn.com/problems/department-top-three-salaries/) | 50.3% | 困难 | | | | [180. 连续出现的数字](https://leetcode-cn.com/problems/consecutive-numbers/) | 48.5% | 中等 | | | | [177. 第N高的薪水](https://leetcode-cn.com/problems/nth-highest-salary/) | 46.3% | 中等 | | | | [197. 上升的温度](https://leetcode-cn.com/problems/rising-temperature/) | 53.3% | 简单 | | | | [181. 超过经理收入的员工](https://leetcode-cn.com/problems/employees-earning-more-than-their-managers/) | 69.6% | 简单 | | | | [182. 查找重复的电子邮箱](https://leetcode-cn.com/problems/duplicate-emails/) | 79.4% | 简单 | | | | [184. 部门工资最高的员工](https://leetcode-cn.com/problems/department-highest-salary/) | 48.4% | 中等 | | | | [262. 行程和用户](https://leetcode-cn.com/problems/trips-and-users/) | 43.0% | 困难 | | | | [183. 从不订购的客户](https://leetcode-cn.com/problems/customers-who-never-order/) | 67.4% | 简单 | | | | [196. 删除重复的电子邮箱](https://leetcode-cn.com/problems/delete-duplicate-emails/) | 66.5% | 简单 | | ### 位运算 | | [136. 只出现一次的数字](https://leetcode-cn.com/problems/single-number/) | 71.9% | 简单 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [面试题 01.01. 判定字符是否唯一](https://leetcode-cn.com/problems/is-unique-lcci/) | 71.5% | 简单 | | | | [29. 两数相除](https://leetcode-cn.com/problems/divide-two-integers/) | 22.1% | 中等 | | | | [187. 重复的DNA序列](https://leetcode-cn.com/problems/repeated-dna-sequences/) | 52.4% | 中等 | | | | [78. 子集](https://leetcode-cn.com/problems/subsets/) | 80.3% | 中等 | | | | [67. 二进制求和](https://leetcode-cn.com/problems/add-binary/) | 54.1% | 简单 | | | | [260. 只出现一次的数字 III](https://leetcode-cn.com/problems/single-number-iii/) | 74.0% | 中等 | | | | [397. 整数替换](https://leetcode-cn.com/problems/integer-replacement/) | 43.2% | 中等 | | | | [526. 优美的排列](https://leetcode-cn.com/problems/beautiful-arrangement/) | 73.4% | 中等 | | | | [剑指 Offer II 001. 整数除法](https://leetcode-cn.com/problems/xoh6Oh/) | 20.7% | 简单 | | | | [剑指 Offer 56 - I. 数组中数字出现的次数](https://leetcode-cn.com/problems/shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof/) | 69.6% | 中等 | | | | [371. 两整数之和](https://leetcode-cn.com/problems/sum-of-two-integers/) | 61.3% | 中等 | | | | [剑指 Offer 53 - II. 0~n-1中缺失的数字](https://leetcode-cn.com/problems/que-shi-de-shu-zi-lcof/) | 44.8% | 简单 | | | | [847. 访问所有节点的最短路径](https://leetcode-cn.com/problems/shortest-path-visiting-all-nodes/) | 67.8% | 困难 | | | | [剑指 Offer 65. 不用加减乘除做加法](https://leetcode-cn.com/problems/bu-yong-jia-jian-cheng-chu-zuo-jia-fa-lcof/) | 58.9% | 简单 | | ### 栈 | | [剑指 Offer 09. 用两个栈实现队列](https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof/) | 71.3% | 简单 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [42. 接雨水](https://leetcode-cn.com/problems/trapping-rain-water/) | 59.3% | 困难 | | | | [20. 有效的括号](https://leetcode-cn.com/problems/valid-parentheses/) | 44.5% | 简单 | | | | [32. 最长有效括号](https://leetcode-cn.com/problems/longest-valid-parentheses/) | 35.8% | 困难 | | | | [143. 重排链表](https://leetcode-cn.com/problems/reorder-list/) | 62.7% | 中等 | | | | [394. 字符串解码](https://leetcode-cn.com/problems/decode-string/) | 55.5% | 中等 | | | | [剑指 Offer 06. 从尾到头打印链表](https://leetcode-cn.com/problems/cong-wei-dao-tou-da-yin-lian-biao-lcof/) | 75.0% | 简单 | | | | [84. 柱状图中最大的矩形](https://leetcode-cn.com/problems/largest-rectangle-in-histogram/) | 43.5% | 困难 | | | | [739. 每日温度](https://leetcode-cn.com/problems/daily-temperatures/) | 68.4% | 中等 | | | | [678. 有效的括号字符串](https://leetcode-cn.com/problems/valid-parenthesis-string/) | 38.7% | 中等 | | | | [155. 最小栈](https://leetcode-cn.com/problems/min-stack/) | 57.6% | 简单 | | | | [剑指 Offer 30. 包含min函数的栈](https://leetcode-cn.com/problems/bao-han-minhan-shu-de-zhan-lcof/) | 55.9% | 简单 | | | | [316. 去除重复字母](https://leetcode-cn.com/problems/remove-duplicate-letters/) | 47.7% | 中等 | | | | [145. 二叉树的后序遍历](https://leetcode-cn.com/problems/binary-tree-postorder-traversal/) | 75.3% | 简单 | | | | [224. 基本计算器](https://leetcode-cn.com/problems/basic-calculator/) | 41.8% | 困难 | | | | [402. 移掉 K 位数字](https://leetcode-cn.com/problems/remove-k-digits/) | 32.7% | 中等 | | | | [234. 回文链表](https://leetcode-cn.com/problems/palindrome-linked-list/) | 50.4% | 简单 | | | | [581. 最短无序连续子数组](https://leetcode-cn.com/problems/shortest-unsorted-continuous-subarray/) | 40.7% | 中等 | | ### 堆(优先队列) | | [215. 数组中的第K个最大元素](https://leetcode-cn.com/problems/kth-largest-element-in-an-array/) | 64.7% | 中等 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [912. 排序数组](https://leetcode-cn.com/problems/sort-an-array/) | 55.7% | 中等 | | | | [23. 合并K个升序链表](https://leetcode-cn.com/problems/merge-k-sorted-lists/) | 56.3% | 困难 | | | | [面试题 17.14. 最小K个数](https://leetcode-cn.com/problems/smallest-k-lcci/) | 59.6% | 中等 | | | | [剑指 Offer 40. 最小的k个数](https://leetcode-cn.com/problems/zui-xiao-de-kge-shu-lcof/) | 57.2% | 简单 | | | | [1488. 避免洪水泛滥](https://leetcode-cn.com/problems/avoid-flood-in-the-city/) | 24.5% | 中等 | | | | [295. 数据流的中位数](https://leetcode-cn.com/problems/find-median-from-data-stream/) | 52.3% | 困难 | | | | [239. 滑动窗口最大值](https://leetcode-cn.com/problems/sliding-window-maximum/) | 49.7% | 困难 | | | | [347. 前 K 个高频元素](https://leetcode-cn.com/problems/top-k-frequent-elements/) | 62.4% | 中等 | | | | [218. 天际线问题](https://leetcode-cn.com/problems/the-skyline-problem/) | 54.3% | 困难 | | | | [407. 接雨水 II](https://leetcode-cn.com/problems/trapping-rain-water-ii/) | 58.0% | 困难 | | | | [253. 会议室 II](https://leetcode-cn.com/problems/meeting-rooms-ii/)![plus](https://static.leetcode-cn.com/cn-mono-assets/production/assets/plus.31398c34.svg) | 50.6% | 中等 | | | | [剑指 Offer 59 - I. 滑动窗口的最大值](https://leetcode-cn.com/problems/hua-dong-chuang-kou-de-zui-da-zhi-lcof/) | 44.6% | 困难 | | ### 链表 | | [2. 两数相加](https://leetcode-cn.com/problems/add-two-numbers/) | 41.2% | 中等 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [146. LRU 缓存](https://leetcode-cn.com/problems/lru-cache/) | 52.5% | 中等 | | | | [25. K 个一组翻转链表](https://leetcode-cn.com/problems/reverse-nodes-in-k-group/) | 65.9% | 困难 | | | | [21. 合并两个有序链表](https://leetcode-cn.com/problems/merge-two-sorted-lists/) | 66.7% | 简单 | | | | [剑指 Offer 22. 链表中倒数第k个节点](https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof/) | 79.9% | 简单 | | | | [剑指 Offer 24. 反转链表](https://leetcode-cn.com/problems/fan-zhuan-lian-biao-lcof/) | 74.3% | 简单 | | | | [206. 反转链表](https://leetcode-cn.com/problems/reverse-linked-list/) | 72.5% | 简单 | | | | [143. 重排链表](https://leetcode-cn.com/problems/reorder-list/) | 62.7% | 中等 | | | | [面试题 16.25. LRU 缓存](https://leetcode-cn.com/problems/lru-cache-lcci/) | 54.6% | 中等 | | | | [23. 合并K个升序链表](https://leetcode-cn.com/problems/merge-k-sorted-lists/) | 56.3% | 困难 | | | | [剑指 Offer 06. 从尾到头打印链表](https://leetcode-cn.com/problems/cong-wei-dao-tou-da-yin-lian-biao-lcof/) | 75.0% | 简单 | | | | [92. 反转链表 II](https://leetcode-cn.com/problems/reverse-linked-list-ii/) | 55.0% | 中等 | | | | [19. 删除链表的倒数第 N 个结点](https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/) | 43.4% | 中等 | | | | [剑指 Offer 25. 合并两个排序的链表](https://leetcode-cn.com/problems/he-bing-liang-ge-pai-xu-de-lian-biao-lcof/) | 72.8% | 简单 | | | | [82. 删除排序链表中的重复元素 II](https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii/) | 53.2% | 中等 | | | | [141. 环形链表](https://leetcode-cn.com/problems/linked-list-cycle/) | 51.3% | 简单 | | | | [138. 复制带随机指针的链表](https://leetcode-cn.com/problems/copy-list-with-random-pointer/) | 66.5% | 中等 | | | | [142. 环形链表 II](https://leetcode-cn.com/problems/linked-list-cycle-ii/) | 55.6% | 中等 | | | | [148. 排序链表](https://leetcode-cn.com/problems/sort-list/) | 66.6% | 中等 | | | | [24. 两两交换链表中的节点](https://leetcode-cn.com/problems/swap-nodes-in-pairs/) | 70.5% | 中等 | | | | [面试题 02.05. 链表求和](https://leetcode-cn.com/problems/sum-lists-lcci/) | 46.7% | 中等 | | | | [234. 回文链表](https://leetcode-cn.com/problems/palindrome-linked-list/) | 50.4% | 简单 | | | | [160. 相交链表](https://leetcode-cn.com/problems/intersection-of-two-linked-lists/) | 62.0% | 简单 | | | | [328. 奇偶链表](https://leetcode-cn.com/problems/odd-even-linked-list/) | 65.5% | 中等 | | | | [剑指 Offer 36. 二叉搜索树与双向链表](https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof/) | 65.4% | 中等 | | | | [83. 删除排序链表中的重复元素](https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list/) | 53.7% | 简单 | | | | [707. 设计链表](https://leetcode-cn.com/problems/design-linked-list/) | 32.7% | 中等 | | | | [705. 设计哈希集合](https://leetcode-cn.com/problems/design-hashset/) | 64.2% | 简单 | | | | [876. 链表的中间结点](https://leetcode-cn.com/problems/middle-of-the-linked-list/) | 70.6% | 简单 | | ### 前缀和 | | [560. 和为 K 的子数组](https://leetcode-cn.com/problems/subarray-sum-equals-k/) | 44.7% | 中等 | | | ---- | ------------------------------------------------------------ | ----- | ---- | ---- | | | [面试题 17.24. 最大子矩阵](https://leetcode-cn.com/problems/max-submatrix-lcci/) | 52.3% | 困难 | | | | [209. 长度最小的子数组](https://leetcode-cn.com/problems/minimum-size-subarray-sum/) | 47.9% | 中等 | | | | [238. 除自身以外数组的乘积](https://leetcode-cn.com/problems/product-of-array-except-self/) | 72.6% | 中等 | | | | [862. 和至少为 K 的最短子数组](https://leetcode-cn.com/problems/shortest-subarray-with-sum-at-least-k/) | 19.8% | 困难 | | | | [528. 按权重随机选择](https://leetcode-cn.com/problems/random-pick-with-weight/) | 48.0% | 中等 | | | | [1004. 最大连续1的个数 III](https://leetcode-cn.com/problems/max-consecutive-ones-iii/) | 59.5% | 中等 | | | | [1109. 航班预订统计](https://leetcode-cn.com/problems/corporate-flight-bookings/) | 58.6% | 中等 | | | | [剑指 Offer 66. 构建乘积数组](https://leetcode-cn.com/problems/gou-jian-cheng-ji-shu-zu-lcof/) | 60.0% | 中等 | | ## 六、其他 暂时想到这么多,希望大家能共同参与到这个记录项目中来,参与度高的话后续我想和大家建一个基于SpringBoot+VUE的前后端分离页面+python爬取数据后做基本的成员数据分析,页面类似 [这样的](https://ojeveryday.com/#/check) 打卡网站。