## 数组

| \# | 题名 | 题解 | 通过率 | 难度 | 出现频率   |
|------|----------------------|-----|--------|----|--------|
|768|[最多能完成排序的块 II](https://leetcode-cn.com/problems/max-chunks-to-make-sorted-ii)   |[14](https://leetcode-cn.com/problems/max-chunks-to-make-sorted-ii/solution)|43.9%|困难|85.87%|
|1|[两数之和](https://leetcode-cn.com/problems/two-sum)   |[811](https://leetcode-cn.com/problems/two-sum/solution)|47.2%|简单|70.68%|
|42|[接雨水](https://leetcode-cn.com/problems/trapping-rain-water)   |[179](https://leetcode-cn.com/problems/trapping-rain-water/solution)|47.6%|困难|63.79%|
|4|[寻找两个有序数组的中位数](https://leetcode-cn.com/problems/median-of-two-sorted-arrays)   |[335](https://leetcode-cn.com/problems/median-of-two-sorted-arrays/solution)|36.4%|困难|62.97%|
|85|[最大矩形](https://leetcode-cn.com/problems/maximal-rectangle)   |[37](https://leetcode-cn.com/problems/maximal-rectangle/solution)|43.4%|困难|59.72%|
|945|[使数组唯一的最小增量](https://leetcode-cn.com/problems/minimum-increment-to-make-array-unique)   |[16](https://leetcode-cn.com/problems/minimum-increment-to-make-array-unique/solution)|41.3%|中等|58.31%|
|15|[三数之和](https://leetcode-cn.com/problems/3sum)   |[239](https://leetcode-cn.com/problems/3sum/solution)|24.8%|中等|53.1%|
|53|[最大子序和](https://leetcode-cn.com/problems/maximum-subarray)   |[271](https://leetcode-cn.com/problems/maximum-subarray/solution)|48.4%|简单|51.43%|
|45|[跳跃游戏 II](https://leetcode-cn.com/problems/jump-game-ii)   |[93](https://leetcode-cn.com/problems/jump-game-ii/solution)|32.4%|困难|50.78%|
|873|[最长的斐波那契子序列的长度](https://leetcode-cn.com/problems/length-of-longest-fibonacci-subsequence)   |[9](https://leetcode-cn.com/problems/length-of-longest-fibonacci-subsequence/solution)|44.6%|中等|50%|
|442|[数组中重复的数据](https://leetcode-cn.com/problems/find-all-duplicates-in-an-array)   |[36](https://leetcode-cn.com/problems/find-all-duplicates-in-an-array/solution)|62.7%|中等|49%|
|54|[螺旋矩阵](https://leetcode-cn.com/problems/spiral-matrix)   |[153](https://leetcode-cn.com/problems/spiral-matrix/solution)|37.9%|中等|48.25%|
|870|[优势洗牌](https://leetcode-cn.com/problems/advantage-shuffle)   |[17](https://leetcode-cn.com/problems/advantage-shuffle/solution)|33.8%|中等|46.71%|
|689|[三个无重叠子数组的最大和](https://leetcode-cn.com/problems/maximum-sum-of-3-non-overlapping-subarrays)   |[9](https://leetcode-cn.com/problems/maximum-sum-of-3-non-overlapping-subarrays/solution)|42.0%|困难|46.19%|
|128|[最长连续序列](https://leetcode-cn.com/problems/longest-consecutive-sequence)   |[57](https://leetcode-cn.com/problems/longest-consecutive-sequence/solution)|47.0%|困难|44.7%|
|1157|[子数组中占绝大多数的元素](https://leetcode-cn.com/problems/online-majority-element-in-subarray)   |[18](https://leetcode-cn.com/problems/online-majority-element-in-subarray/solution)|23.0%|困难|44%|
|11|[盛最多水的容器](https://leetcode-cn.com/problems/container-with-most-water)   |[243](https://leetcode-cn.com/problems/container-with-most-water/solution)|60.0%|中等|43.58%|
|782|[变为棋盘](https://leetcode-cn.com/problems/transform-to-chessboard)   |[8](https://leetcode-cn.com/problems/transform-to-chessboard/solution)|39.8%|困难|43.52%|
|123|[买卖股票的最佳时机 III](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii)   |[41](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii/solution)|39.8%|困难|43.39%|
|714|[买卖股票的最佳时机含手续费](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee)   |[18](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/solution)|58.9%|中等|43.03%|
|644|[最大平均子段和 II](https://leetcode-cn.com/problems/maximum-average-subarray-ii)   |[4](https://leetcode-cn.com/problems/maximum-average-subarray-ii/solution)|31.6%|困难|41.5%|
|713|[乘积小于K的子数组](https://leetcode-cn.com/problems/subarray-product-less-than-k)   |[9](https://leetcode-cn.com/problems/subarray-product-less-than-k/solution)|33.6%|中等|41.08%|
|562|[矩阵中最长的连续1线段](https://leetcode-cn.com/problems/longest-line-of-consecutive-one-in-matrix)   |[11](https://leetcode-cn.com/problems/longest-line-of-consecutive-one-in-matrix/solution)|35.8%|中等|40.67%|
|88|[合并两个有序数组](https://leetcode-cn.com/problems/merge-sorted-array)   |[250](https://leetcode-cn.com/problems/merge-sorted-array/solution)|46.0%|简单|40.38%|
|121|[买卖股票的最佳时机](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock)   |[195](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/solution)|51.7%|简单|40.16%|
|718|[最长重复子数组](https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray)   |[25](https://leetcode-cn.com/problems/maximum-length-of-repeated-subarray/solution)|47.7%|中等|39.89%|
|918|[环形子数组的最大和](https://leetcode-cn.com/problems/maximum-sum-circular-subarray)   |[12](https://leetcode-cn.com/problems/maximum-sum-circular-subarray/solution)|30.1%|中等|39.44%|
|1074|[元素和为目标值的子矩阵数量](https://leetcode-cn.com/problems/number-of-submatrices-that-sum-to-target)   |[9](https://leetcode-cn.com/problems/number-of-submatrices-that-sum-to-target/solution)|39.6%|困难|38.84%|
|381|[O(1) 时间插入、删除和获取随机元素 - 允许重复](https://leetcode-cn.com/problems/insert-delete-getrandom-o1-duplicates-allowed)   |[12](https://leetcode-cn.com/problems/insert-delete-getrandom-o1-duplicates-allowed/solution)|36.6%|困难|38.57%|
|695|[岛屿的最大面积](https://leetcode-cn.com/problems/max-area-of-island)   |[46](https://leetcode-cn.com/problems/max-area-of-island/solution)|58.7%|中等|38.52%|
|31|[下一个排列](https://leetcode-cn.com/problems/next-permutation)   |[136](https://leetcode-cn.com/problems/next-permutation/solution)|32.3%|中等|38.2%|
|670|[最大交换](https://leetcode-cn.com/problems/maximum-swap)   |[23](https://leetcode-cn.com/problems/maximum-swap/solution)|37.4%|中等|37.6%|
|56|[合并区间](https://leetcode-cn.com/problems/merge-intervals)   |[128](https://leetcode-cn.com/problems/merge-intervals/solution)|39.5%|中等|37.54%|
|509|[斐波那契数](https://leetcode-cn.com/problems/fibonacci-number)   |[107](https://leetcode-cn.com/problems/fibonacci-number/solution)|65.4%|简单|37.37%|
|33|[搜索旋转排序数组](https://leetcode-cn.com/problems/search-in-rotated-sorted-array)   |[180](https://leetcode-cn.com/problems/search-in-rotated-sorted-array/solution)|36.2%|中等|36.87%|
|974|[和可被 K 整除的子数组](https://leetcode-cn.com/problems/subarray-sums-divisible-by-k)   |[10](https://leetcode-cn.com/problems/subarray-sums-divisible-by-k/solution)|36.1%|中等|36.73%|
|769|[最多能完成排序的块](https://leetcode-cn.com/problems/max-chunks-to-make-sorted)   |[11](https://leetcode-cn.com/problems/max-chunks-to-make-sorted/solution)|52.0%|中等|36.53%|
|64|[最小路径和](https://leetcode-cn.com/problems/minimum-path-sum)   |[139](https://leetcode-cn.com/problems/minimum-path-sum/solution)|63.6%|中等|36.29%|
|41|[缺失的第一个正数](https://leetcode-cn.com/problems/first-missing-positive)   |[160](https://leetcode-cn.com/problems/first-missing-positive/solution)|37.2%|困难|35.85%|
|560|[和为K的子数组](https://leetcode-cn.com/problems/subarray-sum-equals-k)   |[29](https://leetcode-cn.com/problems/subarray-sum-equals-k/solution)|42.6%|中等|35.69%|
|795|[区间子数组个数](https://leetcode-cn.com/problems/number-of-subarrays-with-bounded-maximum)   |[6](https://leetcode-cn.com/problems/number-of-subarrays-with-bounded-maximum/solution)|45.9%|中等|34.72%|
|84|[柱状图中最大的矩形](https://leetcode-cn.com/problems/largest-rectangle-in-histogram)   |[69](https://leetcode-cn.com/problems/largest-rectangle-in-histogram/solution)|37.8%|困难|34.53%|
|78|[子集](https://leetcode-cn.com/problems/subsets)   |[131](https://leetcode-cn.com/problems/subsets/solution)|75.7%|中等|34.02%|
|55|[跳跃游戏](https://leetcode-cn.com/problems/jump-game)   |[160](https://leetcode-cn.com/problems/jump-game/solution)|37.2%|中等|33.88%|
|907|[子数组的最小值之和](https://leetcode-cn.com/problems/sum-of-subarray-minimums)   |[14](https://leetcode-cn.com/problems/sum-of-subarray-minimums/solution)|26.4%|中等|33.79%|
|152|[乘积最大子序列](https://leetcode-cn.com/problems/maximum-product-subarray)   |[65](https://leetcode-cn.com/problems/maximum-product-subarray/solution)|36.3%|中等|32.67%|
|57|[插入区间](https://leetcode-cn.com/problems/insert-interval)   |[73](https://leetcode-cn.com/problems/insert-interval/solution)|36.2%|困难|32.13%|
|153|[寻找旋转排序数组中的最小值](https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array)   |[75](https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array/solution)|50.1%|中等|32.1%|
|126|[单词接龙 II](https://leetcode-cn.com/problems/word-ladder-ii)   |[35](https://leetcode-cn.com/problems/word-ladder-ii/solution)|30.3%|困难|31.84%|
|79|[单词搜索](https://leetcode-cn.com/problems/word-search)   |[86](https://leetcode-cn.com/problems/word-search/solution)|39.6%|中等|31.84%|
|548|[将数组分割成和相等的子数组](https://leetcode-cn.com/problems/split-array-with-equal-sum)   |[14](https://leetcode-cn.com/problems/split-array-with-equal-sum/solution)|30.4%|中等|31.29%|
|105|[从前序与中序遍历序列构造二叉树](https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal)   |[81](https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/solution)|63.2%|中等|31.19%|
|229|[求众数 II](https://leetcode-cn.com/problems/majority-element-ii)   |[33](https://leetcode-cn.com/problems/majority-element-ii/solution)|42.2%|中等|31.19%|
|259|[较小的三数之和](https://leetcode-cn.com/problems/3sum-smaller)   |[9](https://leetcode-cn.com/problems/3sum-smaller/solution)|55.4%|中等|30.84%|
|39|[组合总和](https://leetcode-cn.com/problems/combination-sum)   |[122](https://leetcode-cn.com/problems/combination-sum/solution)|67.6%|中等|30.78%|
|1169|[查询无效交易](https://leetcode-cn.com/problems/invalid-transactions)   |[20](https://leetcode-cn.com/problems/invalid-transactions/solution)|27.6%|中等|30.43%|
|48|[旋转图像](https://leetcode-cn.com/problems/rotate-image)   |[169](https://leetcode-cn.com/problems/rotate-image/solution)|66.0%|中等|30.35%|
|1185|[一周中的第几天](https://leetcode-cn.com/problems/day-of-the-week)   |[34](https://leetcode-cn.com/problems/day-of-the-week/solution)|58.0%|简单|29.9%|
|962|[最大宽度坡](https://leetcode-cn.com/problems/maximum-width-ramp)   |[12](https://leetcode-cn.com/problems/maximum-width-ramp/solution)|34.9%|中等|29.53%|
|999|[车的可用捕获量](https://leetcode-cn.com/problems/available-captures-for-rook)   |[26](https://leetcode-cn.com/problems/available-captures-for-rook/solution)|65.2%|简单|29.5%|
|62|[不同路径](https://leetcode-cn.com/problems/unique-paths)   |[159](https://leetcode-cn.com/problems/unique-paths/solution)|57.9%|中等|29.42%|
|723|[粉碎糖果](https://leetcode-cn.com/problems/candy-crush)   |[11](https://leetcode-cn.com/problems/candy-crush/solution)|63.1%|中等|29.38%|
|16|[最接近的三数之和](https://leetcode-cn.com/problems/3sum-closest)   |[139](https://leetcode-cn.com/problems/3sum-closest/solution)|42.4%|中等|28.84%|
|118|[杨辉三角](https://leetcode-cn.com/problems/pascals-triangle)   |[169](https://leetcode-cn.com/problems/pascals-triangle/solution)|65.0%|简单|28.67%|
|59|[螺旋矩阵 II](https://leetcode-cn.com/problems/spiral-matrix-ii)   |[101](https://leetcode-cn.com/problems/spiral-matrix-ii/solution)|75.8%|中等|28.58%|
|18|[四数之和](https://leetcode-cn.com/problems/4sum)   |[155](https://leetcode-cn.com/problems/4sum/solution)|36.4%|中等|28.49%|
|1109|[航班预订统计](https://leetcode-cn.com/problems/corporate-flight-bookings)   |[21](https://leetcode-cn.com/problems/corporate-flight-bookings/solution)|36.2%|中等|28.41%|
|289|[生命游戏](https://leetcode-cn.com/problems/game-of-life)   |[51](https://leetcode-cn.com/problems/game-of-life/solution)|67.4%|中等|28.38%|
|1040|[移动石子直到连续 II](https://leetcode-cn.com/problems/moving-stones-until-consecutive-ii)   |[7](https://leetcode-cn.com/problems/moving-stones-until-consecutive-ii/solution)|43.9%|中等|28.24%|
|674|[最长连续递增序列](https://leetcode-cn.com/problems/longest-continuous-increasing-subsequence)   |[43](https://leetcode-cn.com/problems/longest-continuous-increasing-subsequence/solution)|43.3%|简单|27.95%|
|287|[寻找重复数](https://leetcode-cn.com/problems/find-the-duplicate-number)   |[83](https://leetcode-cn.com/problems/find-the-duplicate-number/solution)|62.2%|中等|27.84%|
|167|[两数之和 II - 输入有序数组](https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted)   |[133](https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/solution)|51.5%|简单|26.12%|
|120|[三角形最小路径和](https://leetcode-cn.com/problems/triangle)   |[129](https://leetcode-cn.com/problems/triangle/solution)|63.0%|中等|25.44%|
|1176|[健身计划评估](https://leetcode-cn.com/problems/diet-plan-performance)   |[19](https://leetcode-cn.com/problems/diet-plan-performance/solution)|39.0%|简单|25.32%|
|665|[非递减数列](https://leetcode-cn.com/problems/non-decreasing-array)   |[64](https://leetcode-cn.com/problems/non-decreasing-array/solution)|21.1%|简单|24.95%|
|162|[寻找峰值](https://leetcode-cn.com/problems/find-peak-element)   |[53](https://leetcode-cn.com/problems/find-peak-element/solution)|43.6%|中等|24.93%|
|106|[从中序与后序遍历序列构造二叉树](https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal)   |[55](https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/solution)|65.8%|中等|24.91%|
|914|[卡牌分组](https://leetcode-cn.com/problems/x-of-a-kind-in-a-deck-of-cards)   |[37](https://leetcode-cn.com/problems/x-of-a-kind-in-a-deck-of-cards/solution)|32.5%|简单|24.82%|
|74|[搜索二维矩阵](https://leetcode-cn.com/problems/search-a-2d-matrix)   |[90](https://leetcode-cn.com/problems/search-a-2d-matrix/solution)|36.6%|中等|24.58%|
|280|[摆动排序](https://leetcode-cn.com/problems/wiggle-sort)   |[11](https://leetcode-cn.com/problems/wiggle-sort/solution)|68.2%|中等|24.48%|
|825|[适龄的朋友](https://leetcode-cn.com/problems/friends-of-appropriate-ages)   |[11](https://leetcode-cn.com/problems/friends-of-appropriate-ages/solution)|32.6%|中等|24.09%|
|1122|[数组的相对排序](https://leetcode-cn.com/problems/relative-sort-array)   |[102](https://leetcode-cn.com/problems/relative-sort-array/solution)|64.6%|简单|24.05%|
|1013|[将数组分成和相等的三个部分](https://leetcode-cn.com/problems/partition-array-into-three-parts-with-equal-sum)   |[40](https://leetcode-cn.com/problems/partition-array-into-three-parts-with-equal-sum/solution)|52.7%|简单|23.85%|
|209|[长度最小的子数组](https://leetcode-cn.com/problems/minimum-size-subarray-sum)   |[58](https://leetcode-cn.com/problems/minimum-size-subarray-sum/solution)|40.4%|中等|23.47%|
|905|[按奇偶排序数组](https://leetcode-cn.com/problems/sort-array-by-parity)   |[105](https://leetcode-cn.com/problems/sort-array-by-parity/solution)|67.9%|简单|23.21%|
|840|[矩阵中的幻方](https://leetcode-cn.com/problems/magic-squares-in-grid)   |[23](https://leetcode-cn.com/problems/magic-squares-in-grid/solution)|32.7%|简单|23.21%|
|746|[使用最小花费爬楼梯](https://leetcode-cn.com/problems/min-cost-climbing-stairs)   |[81](https://leetcode-cn.com/problems/min-cost-climbing-stairs/solution)|45.7%|简单|23.15%|
|849|[到最近的人的最大距离](https://leetcode-cn.com/problems/maximize-distance-to-closest-person)   |[30](https://leetcode-cn.com/problems/maximize-distance-to-closest-person/solution)|37.7%|简单|22.93%|
|34|[在排序数组中查找元素的第一个和最后一个位置](https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array)   |[207](https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/solution)|38.3%|中等|22.89%|
|169|[多数元素](https://leetcode-cn.com/problems/majority-element)   |[162](https://leetcode-cn.com/problems/majority-element/solution)|60.8%|简单|22.34%|
|63|[不同路径 II](https://leetcode-cn.com/problems/unique-paths-ii)   |[119](https://leetcode-cn.com/problems/unique-paths-ii/solution)|32.1%|中等|22.32%|
|628|[三个数的最大乘积](https://leetcode-cn.com/problems/maximum-product-of-three-numbers)   |[46](https://leetcode-cn.com/problems/maximum-product-of-three-numbers/solution)|48.1%|简单|22.2%|
|448|[找到所有数组中消失的数字](https://leetcode-cn.com/problems/find-all-numbers-disappeared-in-an-array)   |[81](https://leetcode-cn.com/problems/find-all-numbers-disappeared-in-an-array/solution)|54.6%|简单|22.17%|
|1085|[最小元素各数位之和](https://leetcode-cn.com/problems/sum-of-digits-in-the-minimum-number)   |[20](https://leetcode-cn.com/problems/sum-of-digits-in-the-minimum-number/solution)|74.3%|简单|22.12%|
|216|[组合总和 III](https://leetcode-cn.com/problems/combination-sum-iii)   |[47](https://leetcode-cn.com/problems/combination-sum-iii/solution)|69.3%|中等|22.12%|
|835|[图像重叠](https://leetcode-cn.com/problems/image-overlap)   |[8](https://leetcode-cn.com/problems/image-overlap/solution)|56.8%|中等|21.96%|
|122|[买卖股票的最佳时机 II](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii)   |[171](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/solution)|56.6%|简单|21.65%|
|26|[删除排序数组中的重复项](https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array)   |[387](https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/solution)|47.7%|简单|21.46%|
|1146|[快照数组](https://leetcode-cn.com/problems/snapshot-array)   |[15](https://leetcode-cn.com/problems/snapshot-array/solution)|21.1%|中等|21.04%|
|1031|[两个非重叠子数组的最大和](https://leetcode-cn.com/problems/maximum-sum-of-two-non-overlapping-subarrays)   |[9](https://leetcode-cn.com/problems/maximum-sum-of-two-non-overlapping-subarrays/solution)|48.9%|中等|20.89%|
|1014|[最佳观光组合](https://leetcode-cn.com/problems/best-sightseeing-pair)   |[8](https://leetcode-cn.com/problems/best-sightseeing-pair/solution)|45.9%|中等|20.82%|
|81|[搜索旋转排序数组 II](https://leetcode-cn.com/problems/search-in-rotated-sorted-array-ii)   |[45](https://leetcode-cn.com/problems/search-in-rotated-sorted-array-ii/solution)|34.6%|中等|20.16%|
|1051|[高度检查器](https://leetcode-cn.com/problems/height-checker)   |[82](https://leetcode-cn.com/problems/height-checker/solution)|71.6%|简单|19.15%|
|1011|[在 D 天内送达包裹的能力](https://leetcode-cn.com/problems/capacity-to-ship-packages-within-d-days)   |[8](https://leetcode-cn.com/problems/capacity-to-ship-packages-within-d-days/solution)|49.5%|中等|19.1%|
|189|[旋转数组](https://leetcode-cn.com/problems/rotate-array)   |[140](https://leetcode-cn.com/problems/rotate-array/solution)|39.8%|简单|19%|
|1128|[等价多米诺骨牌对的数量](https://leetcode-cn.com/problems/number-of-equivalent-domino-pairs)   |[40](https://leetcode-cn.com/problems/number-of-equivalent-domino-pairs/solution)|39.6%|简单|18.97%|
|238|[除自身以外数组的乘积](https://leetcode-cn.com/problems/product-of-array-except-self)   |[48](https://leetcode-cn.com/problems/product-of-array-except-self/solution)|64.9%|中等|18.52%|
|832|[翻转图像](https://leetcode-cn.com/problems/flipping-an-image)   |[95](https://leetcode-cn.com/problems/flipping-an-image/solution)|73.7%|简单|18.35%|
|90|[子集 II](https://leetcode-cn.com/problems/subsets-ii)   |[57](https://leetcode-cn.com/problems/subsets-ii/solution)|57.9%|中等|18.32%|
|775|[全局倒置与局部倒置](https://leetcode-cn.com/problems/global-and-local-inversions)   |[15](https://leetcode-cn.com/problems/global-and-local-inversions/solution)|40.8%|中等|18.13%|
|1053|[交换一次的先前排列](https://leetcode-cn.com/problems/previous-permutation-with-one-swap)   |[22](https://leetcode-cn.com/problems/previous-permutation-with-one-swap/solution)|41.3%|中等|17.51%|
|605|[种花问题](https://leetcode-cn.com/problems/can-place-flowers)   |[63](https://leetcode-cn.com/problems/can-place-flowers/solution)|30.5%|简单|17.38%|
|1151|[最少交换次数来组合所有的 1](https://leetcode-cn.com/problems/minimum-swaps-to-group-all-1s-together)   |[6](https://leetcode-cn.com/problems/minimum-swaps-to-group-all-1s-together/solution)|38.8%|中等|17.21%|
|969|[煎饼排序](https://leetcode-cn.com/problems/pancake-sorting)   |[23](https://leetcode-cn.com/problems/pancake-sorting/solution)|61.7%|中等|17.21%|
|621|[任务调度器](https://leetcode-cn.com/problems/task-scheduler)   |[33](https://leetcode-cn.com/problems/task-scheduler/solution)|46.2%|中等|17.18%|
|277|[搜寻名人](https://leetcode-cn.com/problems/find-the-celebrity)   |[17](https://leetcode-cn.com/problems/find-the-celebrity/solution)|56.3%|中等|16.83%|
|75|[颜色分类](https://leetcode-cn.com/problems/sort-colors)   |[117](https://leetcode-cn.com/problems/sort-colors/solution)|54.2%|中等|16.63%|
|729|[我的日程安排表 I](https://leetcode-cn.com/problems/my-calendar-i)   |[14](https://leetcode-cn.com/problems/my-calendar-i/solution)|44.4%|中等|16.56%|
|283|[移动零](https://leetcode-cn.com/problems/move-zeroes)   |[264](https://leetcode-cn.com/problems/move-zeroes/solution)|58.4%|简单|16.49%|
|532|[数组中的K-diff数对](https://leetcode-cn.com/problems/k-diff-pairs-in-an-array)   |[28](https://leetcode-cn.com/problems/k-diff-pairs-in-an-array/solution)|32.9%|简单|16.29%|
|1007|[行相等的最少多米诺旋转](https://leetcode-cn.com/problems/minimum-domino-rotations-for-equal-row)   |[5](https://leetcode-cn.com/problems/minimum-domino-rotations-for-equal-row/solution)|42.1%|中等|16.2%|
|611|[有效三角形的个数](https://leetcode-cn.com/problems/valid-triangle-number)   |[19](https://leetcode-cn.com/problems/valid-triangle-number/solution)|47.3%|中等|15.58%|
|73|[矩阵置零](https://leetcode-cn.com/problems/set-matrix-zeroes)   |[53](https://leetcode-cn.com/problems/set-matrix-zeroes/solution)|54.7%|中等|15%|
|978|[最长湍流子数组](https://leetcode-cn.com/problems/longest-turbulent-subarray)   |[16](https://leetcode-cn.com/problems/longest-turbulent-subarray/solution)|36.8%|中等|14.72%|
|1086|[前五科的均分](https://leetcode-cn.com/problems/high-five)   |[12](https://leetcode-cn.com/problems/high-five/solution)|67.0%|简单|14.58%|
|792|[匹配子序列的单词数](https://leetcode-cn.com/problems/number-of-matching-subsequences)   |[10](https://leetcode-cn.com/problems/number-of-matching-subsequences/solution)|40.2%|中等|14.51%|
|1160|[拼写单词](https://leetcode-cn.com/problems/find-words-that-can-be-formed-by-characters)   |[62](https://leetcode-cn.com/problems/find-words-that-can-be-formed-by-characters/solution)|63.6%|简单|14.19%|
|414|[第三大的数](https://leetcode-cn.com/problems/third-maximum-number)   |[67](https://leetcode-cn.com/problems/third-maximum-number/solution)|33.7%|简单|14.11%|
|457|[环形数组循环](https://leetcode-cn.com/problems/circular-array-loop)   |[16](https://leetcode-cn.com/problems/circular-array-loop/solution)|31.2%|中等|14.05%|
|1177|[构建回文串检测](https://leetcode-cn.com/problems/can-make-palindrome-from-substring)   |[14](https://leetcode-cn.com/problems/can-make-palindrome-from-substring/solution)|18.9%|中等|13.98%|
|661|[图片平滑器](https://leetcode-cn.com/problems/image-smoother)   |[27](https://leetcode-cn.com/problems/image-smoother/solution)|51.7%|简单|13.8%|
|581|[最短无序连续子数组](https://leetcode-cn.com/problems/shortest-unsorted-continuous-subarray)   |[40](https://leetcode-cn.com/problems/shortest-unsorted-continuous-subarray/solution)|33.3%|简单|13.66%|
|380|[常数时间插入、删除和获取随机元素](https://leetcode-cn.com/problems/insert-delete-getrandom-o1)   |[26](https://leetcode-cn.com/problems/insert-delete-getrandom-o1/solution)|47.3%|中等|13.65%|
|867|[转置矩阵](https://leetcode-cn.com/problems/transpose-matrix)   |[40](https://leetcode-cn.com/problems/transpose-matrix/solution)|66.3%|简单|13.42%|
|697|[数组的度](https://leetcode-cn.com/problems/degree-of-an-array)   |[43](https://leetcode-cn.com/problems/degree-of-an-array/solution)|50.2%|简单|13.11%|
|1233|[删除子文件夹](https://leetcode-cn.com/problems/remove-sub-folders-from-the-filesystem)   |[16](https://leetcode-cn.com/problems/remove-sub-folders-from-the-filesystem/solution)|40.5%|中等|13.04%|
|485|[最大连续1的个数](https://leetcode-cn.com/problems/max-consecutive-ones)   |[74](https://leetcode-cn.com/problems/max-consecutive-ones/solution)|55.0%|简单|12.98%|
|268|[缺失数字](https://leetcode-cn.com/problems/missing-number)   |[95](https://leetcode-cn.com/problems/missing-number/solution)|53.4%|简单|12.95%|
|941|[有效的山脉数组](https://leetcode-cn.com/problems/valid-mountain-array)   |[23](https://leetcode-cn.com/problems/valid-mountain-array/solution)|34.6%|简单|12.93%|
|888|[公平的糖果交换](https://leetcode-cn.com/problems/fair-candy-swap)   |[14](https://leetcode-cn.com/problems/fair-candy-swap/solution)|50.7%|简单|12.76%|
|1052|[爱生气的书店老板](https://leetcode-cn.com/problems/grumpy-bookstore-owner)   |[21](https://leetcode-cn.com/problems/grumpy-bookstore-owner/solution)|45.1%|中等|12.69%|
|643|[子数组最大平均数 I](https://leetcode-cn.com/problems/maximum-average-subarray-i)   |[20](https://leetcode-cn.com/problems/maximum-average-subarray-i/solution)|36.7%|简单|12.52%|
|40|[组合总和 II](https://leetcode-cn.com/problems/combination-sum-ii)   |[94](https://leetcode-cn.com/problems/combination-sum-ii/solution)|58.9%|中等|12.44%|
|565|[数组嵌套](https://leetcode-cn.com/problems/array-nesting)   |[15](https://leetcode-cn.com/problems/array-nesting/solution)|53.2%|中等|12.36%|
|243|[最短单词距离](https://leetcode-cn.com/problems/shortest-word-distance)   |[14](https://leetcode-cn.com/problems/shortest-word-distance/solution)|63.3%|简单|12.36%|
|217|[存在重复元素](https://leetcode-cn.com/problems/contains-duplicate)   |[116](https://leetcode-cn.com/problems/contains-duplicate/solution)|51.1%|简单|12.04%|
|1202|[交换字符串中的元素](https://leetcode-cn.com/problems/smallest-string-with-swaps)   |[12](https://leetcode-cn.com/problems/smallest-string-with-swaps/solution)|26.5%|中等|11.35%|
|1217|[玩筹码](https://leetcode-cn.com/problems/play-with-chips)   |[49](https://leetcode-cn.com/problems/play-with-chips/solution)|66.1%|简单|11.08%|
|1208|[尽可能使字符串相等](https://leetcode-cn.com/problems/get-equal-substrings-within-budget)   |[22](https://leetcode-cn.com/problems/get-equal-substrings-within-budget/solution)|29.1%|中等|10.91%|
|950|[按递增顺序显示卡牌](https://leetcode-cn.com/problems/reveal-cards-in-increasing-order)   |[28](https://leetcode-cn.com/problems/reveal-cards-in-increasing-order/solution)|75.4%|中等|10.88%|
|163|[缺失的区间](https://leetcode-cn.com/problems/missing-ranges)   |[21](https://leetcode-cn.com/problems/missing-ranges/solution)|23.1%|中等|10.84%|
|1260|[二维网格迁移](https://leetcode-cn.com/problems/shift-2d-grid)   |[45](https://leetcode-cn.com/problems/shift-2d-grid/solution)|57.2%|简单|10.42%|
|66|[加一](https://leetcode-cn.com/problems/plus-one)   |[344](https://leetcode-cn.com/problems/plus-one/solution)|42.2%|简单|10.36%|
|154|[寻找旋转排序数组中的最小值 II](https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array-ii)   |[42](https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array-ii/solution)|46.2%|困难|10.01%|
|80|[删除排序数组中的重复项 II](https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array-ii)   |[86](https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array-ii/solution)|53.5%|中等|9.89%|
|35|[搜索插入位置](https://leetcode-cn.com/problems/search-insert-position)   |[245](https://leetcode-cn.com/problems/search-insert-position/solution)|44.7%|简单|9.66%|
|1002|[查找常用字符](https://leetcode-cn.com/problems/find-common-characters)   |[47](https://leetcode-cn.com/problems/find-common-characters/solution)|65.5%|简单|9.24%|
|717|[1比特与2比特字符](https://leetcode-cn.com/problems/1-bit-and-2-bit-characters)   |[55](https://leetcode-cn.com/problems/1-bit-and-2-bit-characters/solution)|45.8%|简单|9.06%|
|989|[数组形式的整数加法](https://leetcode-cn.com/problems/add-to-array-form-of-integer)   |[33](https://leetcode-cn.com/problems/add-to-array-form-of-integer/solution)|42.5%|简单|8.74%|
|27|[移除元素](https://leetcode-cn.com/problems/remove-element)   |[315](https://leetcode-cn.com/problems/remove-element/solution)|56.8%|简单|8.35%|
|119|[杨辉三角 II](https://leetcode-cn.com/problems/pascals-triangle-ii)   |[96](https://leetcode-cn.com/problems/pascals-triangle-ii/solution)|59.2%|简单|8.1%|
|1292|[元素和小于等于阈值的正方形的最大边长](https://leetcode-cn.com/problems/maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold)   |[25](https://leetcode-cn.com/problems/maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold/solution)|37.8%|中等|7.95%|
|1010|[总持续时间可被 60 整除的歌曲](https://leetcode-cn.com/problems/pairs-of-songs-with-total-durations-divisible-by-60)   |[20](https://leetcode-cn.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/solution)|42.4%|简单|7.83%|
|830|[较大分组的位置](https://leetcode-cn.com/problems/positions-of-large-groups)   |[26](https://leetcode-cn.com/problems/positions-of-large-groups/solution)|44.7%|简单|7.49%|
|985|[查询后的偶数和](https://leetcode-cn.com/problems/sum-of-even-numbers-after-queries)   |[24](https://leetcode-cn.com/problems/sum-of-even-numbers-after-queries/solution)|58.4%|简单|7.42%|
|495|[提莫攻击](https://leetcode-cn.com/problems/teemo-attacking)   |[32](https://leetcode-cn.com/problems/teemo-attacking/solution)|52.1%|中等|7.23%|
|1266|[访问所有点的最小时间](https://leetcode-cn.com/problems/minimum-time-visiting-all-points)   |[68](https://leetcode-cn.com/problems/minimum-time-visiting-all-points/solution)|79.5%|简单|6.61%|
|915|[分割数组](https://leetcode-cn.com/problems/partition-array-into-disjoint-intervals)   |[13](https://leetcode-cn.com/problems/partition-array-into-disjoint-intervals/solution)|41.9%|中等|6.2%|
|1252|[奇数值单元格的数目](https://leetcode-cn.com/problems/cells-with-odd-values-in-a-matrix)   |[54](https://leetcode-cn.com/problems/cells-with-odd-values-in-a-matrix/solution)|74.2%|简单|5.86%|
|896|[单调数列](https://leetcode-cn.com/problems/monotonic-array)   |[43](https://leetcode-cn.com/problems/monotonic-array/solution)|50.2%|简单|5.86%|
|561|[数组拆分 I](https://leetcode-cn.com/problems/array-partition-i)   |[65](https://leetcode-cn.com/problems/array-partition-i/solution)|68.7%|简单|5.86%|
|922|[按奇偶排序数组 II](https://leetcode-cn.com/problems/sort-array-by-parity-ii)   |[74](https://leetcode-cn.com/problems/sort-array-by-parity-ii/solution)|66.4%|简单|5.81%|
|228|[汇总区间](https://leetcode-cn.com/problems/summary-ranges)   |[25](https://leetcode-cn.com/problems/summary-ranges/solution)|49.9%|中等|5.52%|
|1267|[统计参与通信的服务器](https://leetcode-cn.com/problems/count-servers-that-communicate)   |[25](https://leetcode-cn.com/problems/count-servers-that-communicate/solution)|58.1%|中等|4.99%|
|977|[有序数组的平方](https://leetcode-cn.com/problems/squares-of-a-sorted-array)   |[72](https://leetcode-cn.com/problems/squares-of-a-sorted-array/solution)|70.9%|简单|4.95%|
|219|[存在重复元素 II](https://leetcode-cn.com/problems/contains-duplicate-ii)   |[88](https://leetcode-cn.com/problems/contains-duplicate-ii/solution)|36.8%|简单|4.91%|
|566|[重塑矩阵](https://leetcode-cn.com/problems/reshape-the-matrix)   |[35](https://leetcode-cn.com/problems/reshape-the-matrix/solution)|62.7%|简单|4.68%|
|747|[至少是其他数字两倍的最大数](https://leetcode-cn.com/problems/largest-number-at-least-twice-of-others)   |[60](https://leetcode-cn.com/problems/largest-number-at-least-twice-of-others/solution)|38.6%|简单|2.46%|
|1296|[划分数组为连续数字的集合](https://leetcode-cn.com/problems/divide-array-in-sets-of-k-consecutive-numbers)   |[32](https://leetcode-cn.com/problems/divide-array-in-sets-of-k-consecutive-numbers/solution)|39.4%|中等|2.41%|
|724|[寻找数组的中心索引](https://leetcode-cn.com/problems/find-pivot-index)   |[64](https://leetcode-cn.com/problems/find-pivot-index/solution)|35.7%|简单|2.15%|
|1295|[统计位数为偶数的数字](https://leetcode-cn.com/problems/find-numbers-with-even-number-of-digits)   |[33](https://leetcode-cn.com/problems/find-numbers-with-even-number-of-digits/solution)|82.3%|简单|&nbsp;|
|1277|[统计全为 1 的正方形子矩阵](https://leetcode-cn.com/problems/count-square-submatrices-with-all-ones)   |[30](https://leetcode-cn.com/problems/count-square-submatrices-with-all-ones/solution)|63.2%|中等|&nbsp;|
|1275|[找出井字棋的获胜者](https://leetcode-cn.com/problems/find-winner-on-a-tic-tac-toe-game)   |[34](https://leetcode-cn.com/problems/find-winner-on-a-tic-tac-toe-game/solution)|50.4%|简单|&nbsp;|
|1232|[缀点成线](https://leetcode-cn.com/problems/check-if-it-is-a-straight-line)   |[38](https://leetcode-cn.com/problems/check-if-it-is-a-straight-line/solution)|48.8%|简单|&nbsp;|
|1222|[可以攻击国王的皇后](https://leetcode-cn.com/problems/queens-that-can-attack-the-king)   |[24](https://leetcode-cn.com/problems/queens-that-can-attack-the-king/solution)|62.1%|中等|&nbsp;|
|1200|[最小绝对差](https://leetcode-cn.com/problems/minimum-absolute-difference)   |[33](https://leetcode-cn.com/problems/minimum-absolute-difference/solution)|64.1%|简单|&nbsp;|
|1184|[公交站间的距离](https://leetcode-cn.com/problems/distance-between-bus-stops)   |[51](https://leetcode-cn.com/problems/distance-between-bus-stops/solution)|55.1%|简单|&nbsp;|
|1170|[比较字符串最小字母出现频次](https://leetcode-cn.com/problems/compare-strings-by-frequency-of-the-smallest-character)   |[38](https://leetcode-cn.com/problems/compare-strings-by-frequency-of-the-smallest-character/solution)|58.9%|简单|&nbsp;|
|1144|[递减元素使数组呈锯齿状](https://leetcode-cn.com/problems/decrease-elements-to-make-array-zigzag)   |[23](https://leetcode-cn.com/problems/decrease-elements-to-make-array-zigzag/solution)|39.5%|中等|&nbsp;|
|1287|[有序数组中出现次数超过25%的元素](https://leetcode-cn.com/problems/element-appearing-more-than-25-in-sorted-array)   |[26](https://leetcode-cn.com/problems/element-appearing-more-than-25-in-sorted-array/solution)|60.2%|简单|&nbsp;|
|1243|[数组变换](https://leetcode-cn.com/problems/array-transformation)   |[7](https://leetcode-cn.com/problems/array-transformation/solution)|50.6%|简单|&nbsp;|
|1089|[复写零](https://leetcode-cn.com/problems/duplicate-zeros)   |[63](https://leetcode-cn.com/problems/duplicate-zeros/solution)|57.9%|简单|&nbsp;|
|1152|[用户网站访问行为分析](https://leetcode-cn.com/problems/analyze-user-website-visit-pattern)   |[6](https://leetcode-cn.com/problems/analyze-user-website-visit-pattern/solution)|28.4%|中等|&nbsp;|
|1035|[不相交的线](https://leetcode-cn.com/problems/uncrossed-lines)   |[6](https://leetcode-cn.com/problems/uncrossed-lines/solution)|48.5%|中等|&nbsp;|
|1150|[检查一个数是否在数组中占绝大多数](https://leetcode-cn.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array)   |[14](https://leetcode-cn.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array/solution)|65.2%|简单|&nbsp;|
|1133|[最大唯一数](https://leetcode-cn.com/problems/largest-unique-number)   |[11](https://leetcode-cn.com/problems/largest-unique-number/solution)|58.9%|简单|&nbsp;|
|1099|[小于 K 的两数之和](https://leetcode-cn.com/problems/two-sum-less-than-k)   |[16](https://leetcode-cn.com/problems/two-sum-less-than-k/solution)|52.2%|简单|&nbsp;|
|1018|[可被 5 整除的二进制前缀](https://leetcode-cn.com/problems/binary-prefix-divisible-by-5)   |[24](https://leetcode-cn.com/problems/binary-prefix-divisible-by-5/solution)|43.4%|简单|&nbsp;|
|1064|[不动点](https://leetcode-cn.com/problems/fixed-point)   |[16](https://leetcode-cn.com/problems/fixed-point/solution)|72.2%|简单|&nbsp;|
|954|[二倍数对数组](https://leetcode-cn.com/problems/array-of-doubled-pairs)   |[10](https://leetcode-cn.com/problems/array-of-doubled-pairs/solution)|25.5%|中等|&nbsp;|
|926|[将字符串翻转到单调递增](https://leetcode-cn.com/problems/flip-string-to-monotone-increasing)   |[14](https://leetcode-cn.com/problems/flip-string-to-monotone-increasing/solution)|43.7%|中等|&nbsp;|
|900|[RLE 迭代器](https://leetcode-cn.com/problems/rle-iterator)   |[4](https://leetcode-cn.com/problems/rle-iterator/solution)|40.5%|中等|&nbsp;|
|891|[子序列宽度之和](https://leetcode-cn.com/problems/sum-of-subsequence-widths)   |[6](https://leetcode-cn.com/problems/sum-of-subsequence-widths/solution)|26.1%|困难|&nbsp;|
|766|[托普利茨矩阵](https://leetcode-cn.com/problems/toeplitz-matrix)   |[40](https://leetcode-cn.com/problems/toeplitz-matrix/solution)|62.4%|简单|&nbsp;|
|755|[倒水](https://leetcode-cn.com/problems/pour-water)   |[9](https://leetcode-cn.com/problems/pour-water/solution)|46.7%|中等|&nbsp;|
|719|[找出第 k 小的距离对](https://leetcode-cn.com/problems/find-k-th-smallest-pair-distance)   |[12](https://leetcode-cn.com/problems/find-k-th-smallest-pair-distance/solution)|30.5%|困难|&nbsp;|
|667|[优美的排列 II](https://leetcode-cn.com/problems/beautiful-arrangement-ii)   |[15](https://leetcode-cn.com/problems/beautiful-arrangement-ii/solution)|57.2%|中等|&nbsp;|
|624|[数组列表中的最大距离](https://leetcode-cn.com/problems/maximum-distance-in-arrays)   |[12](https://leetcode-cn.com/problems/maximum-distance-in-arrays/solution)|38.8%|简单|&nbsp;|
|533|[孤独像素 II](https://leetcode-cn.com/problems/lonely-pixel-ii)   |[5](https://leetcode-cn.com/problems/lonely-pixel-ii/solution)|45.2%|中等|&nbsp;|
|531|[孤独像素 I](https://leetcode-cn.com/problems/lonely-pixel-i)   |[14](https://leetcode-cn.com/problems/lonely-pixel-i/solution)|65.3%|中等|&nbsp;|
|370|[区间加法](https://leetcode-cn.com/problems/range-addition)   |[10](https://leetcode-cn.com/problems/range-addition/solution)|62.9%|中等|&nbsp;|
|245|[最短单词距离 III](https://leetcode-cn.com/problems/shortest-word-distance-iii)   |[6](https://leetcode-cn.com/problems/shortest-word-distance-iii/solution)|62.5%|中等|&nbsp;|

