跳至主要內容

数组


数组

全部标签

数据结构

数组 矩阵 链表 双向链表 单调栈 队列 单调队列 堆(优先队列) 哈希表 字符串 字符串匹配 二叉树 二叉搜索树 最小生成树 有序集合 拓扑排序 最短路 强连通分量 欧拉回路 双连通分量 并查集 字典树 线段树 树状数组 后缀数组

算法

枚举 递归 分治 回溯 贪心 动态规划 排序 桶排序 计数排序 基数排序 归并排序 快速选择 二分查找 记忆化搜索 深度优先搜索 广度优先搜索 双指针 位运算 前缀和 计数 滑动窗口 状态压缩 哈希函数 滚动哈希 扫描线

其他

数学 数论 几何 博弈 模拟 组合数学 随机化 概率与统计 水塘抽样 拒绝采样 数据库 设计 数据流 脑筋急转弯 交互 迭代器 多线程


题号标题题解标签难度力扣
1两数之和[✓]数组 哈希表🟢🀄️open in new window 🔗open in new window
4寻找两个正序数组的中位数[✓]数组 二分查找 分治🔴🀄️open in new window 🔗open in new window
11盛最多水的容器[✓]贪心 数组 双指针🟠🀄️open in new window 🔗open in new window
15三数之和[✓]数组 双指针 排序🟠🀄️open in new window 🔗open in new window
16最接近的三数之和[✓]数组 双指针 排序🟠🀄️open in new window 🔗open in new window
18四数之和[✓]数组 双指针 排序🟠🀄️open in new window 🔗open in new window
26删除有序数组中的重复项[✓]数组 双指针🟢🀄️open in new window 🔗open in new window
27移除元素[✓]数组 双指针🟢🀄️open in new window 🔗open in new window
31下一个排列[✓]数组 双指针🟠🀄️open in new window 🔗open in new window
33搜索旋转排序数组[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
34在排序数组中查找元素的第一个和最后一个位置[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
35搜索插入位置[✓]数组 二分查找🟢🀄️open in new window 🔗open in new window
36有效的数独[✓]数组 哈希表 矩阵🟠🀄️open in new window 🔗open in new window
37解数独[✓]数组 哈希表 回溯 1+🔴🀄️open in new window 🔗open in new window
39组合总和[✓]数组 回溯🟠🀄️open in new window 🔗open in new window
40组合总和 II[✓]数组 回溯🟠🀄️open in new window 🔗open in new window
41缺失的第一个正数[✓]数组 哈希表🔴🀄️open in new window 🔗open in new window
42接雨水[✓] 数组 双指针 2+🔴🀄️open in new window 🔗open in new window
45跳跃游戏 II[✓]贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
46全排列[✓]数组 回溯🟠🀄️open in new window 🔗open in new window
47全排列 II[✓]数组 回溯🟠🀄️open in new window 🔗open in new window
48旋转图像[✓]数组 数学 矩阵🟠🀄️open in new window 🔗open in new window
49字母异位词分组[✓]数组 哈希表 字符串 1+🟠🀄️open in new window 🔗open in new window
51N 皇后[✓]数组 回溯🔴🀄️open in new window 🔗open in new window
53最大子数组和[✓]数组 分治 动态规划🟠🀄️open in new window 🔗open in new window
54螺旋矩阵[✓]数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
55跳跃游戏[✓]贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
56合并区间[✓]数组 排序🟠🀄️open in new window 🔗open in new window
57插入区间[✓]数组🟠🀄️open in new window 🔗open in new window
59螺旋矩阵 II[✓]数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
63不同路径 II[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
64最小路径和[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
66加一[✓]数组 数学🟢🀄️open in new window 🔗open in new window
68文本左右对齐[✓]数组 字符串 模拟🔴🀄️open in new window 🔗open in new window
73矩阵置零[✓]数组 哈希表 矩阵🟠🀄️open in new window 🔗open in new window
74搜索二维矩阵[✓]数组 二分查找 矩阵🟠🀄️open in new window 🔗open in new window
75颜色分类[✓]数组 双指针 排序🟠🀄️open in new window 🔗open in new window
78子集[✓]位运算 数组 回溯🟠🀄️open in new window 🔗open in new window
79单词搜索[✓]数组 字符串 回溯 1+🟠🀄️open in new window 🔗open in new window
80删除有序数组中的重复项 II[✓]数组 双指针🟠🀄️open in new window 🔗open in new window
81搜索旋转排序数组 II[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
84柱状图中最大的矩形[✓] 数组 单调栈🔴🀄️open in new window 🔗open in new window
85最大矩形[✓] 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
88合并两个有序数组[✓]数组 双指针 排序🟢🀄️open in new window 🔗open in new window
90子集 II[✓]位运算 数组 回溯🟠🀄️open in new window 🔗open in new window
105从前序与中序遍历序列构造二叉树[✓] 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
106从中序与后序遍历序列构造二叉树[✓] 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
108将有序数组转换为二叉搜索树[✓] 二叉搜索树 数组 2+🟢🀄️open in new window 🔗open in new window
118杨辉三角[✓]数组 动态规划🟢🀄️open in new window 🔗open in new window
119杨辉三角 II[✓]数组 动态规划🟢🀄️open in new window 🔗open in new window
120三角形最小路径和[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
121买卖股票的最佳时机[✓]数组 动态规划🟢🀄️open in new window 🔗open in new window
122买卖股票的最佳时机 II[✓]贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
123买卖股票的最佳时机 III[✓]数组 动态规划🔴🀄️open in new window 🔗open in new window
128最长连续序列[✓]并查集 数组 哈希表🟠🀄️open in new window 🔗open in new window
130被围绕的区域[✓]深度优先搜索 广度优先搜索 并查集 2+🟠🀄️open in new window 🔗open in new window
134加油站[✓]贪心 数组🟠🀄️open in new window 🔗open in new window
135分发糖果[✓]贪心 数组🔴🀄️open in new window 🔗open in new window
136只出现一次的数字[✓]位运算 数组🟢🀄️open in new window 🔗open in new window
137只出现一次的数字 II[✓]位运算 数组🟠🀄️open in new window 🔗open in new window
139单词拆分[✓]字典树 记忆化搜索 数组 3+🟠🀄️open in new window 🔗open in new window
140单词拆分 II[✓]字典树 记忆化搜索 数组 4+🔴🀄️open in new window 🔗open in new window
149直线上最多的点数[✓]几何 数组 哈希表 1+🔴🀄️open in new window 🔗open in new window
150逆波兰表达式求值[✓] 数组 数学🟠🀄️open in new window 🔗open in new window
152乘积最大子数组[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
153寻找旋转排序数组中的最小值[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
154寻找旋转排序数组中的最小值 II[✓]数组 二分查找🔴🀄️open in new window 🔗open in new window
157用 Read4 读取 N 个字符 🔒数组 交互 模拟🟢🀄️open in new window 🔗open in new window
158用 Read4 读取 N 个字符 II - 多次调用 🔒数组 交互 模拟🔴🀄️open in new window 🔗open in new window
162寻找峰值[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
163缺失的区间 🔒数组🟢🀄️open in new window 🔗open in new window
164最大间距数组 桶排序 基数排序 1+🟠🀄️open in new window 🔗open in new window
167两数之和 II - 输入有序数组[✓]数组 双指针 二分查找🟠🀄️open in new window 🔗open in new window
169多数元素[✓]数组 哈希表 分治 2+🟢🀄️open in new window 🔗open in new window
170两数之和 III - 数据结构设计 🔒[✓]设计 数组 哈希表 2+🟢🀄️open in new window 🔗open in new window
174地下城游戏[✓]数组 动态规划 矩阵🔴🀄️open in new window 🔗open in new window
179最大数贪心 数组 字符串 1+🟠🀄️open in new window 🔗open in new window
188买卖股票的最佳时机 IV[✓]数组 动态规划🔴🀄️open in new window 🔗open in new window
189轮转数组[✓]数组 数学 双指针🟠🀄️open in new window 🔗open in new window
198打家劫舍[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
200岛屿数量[✓]深度优先搜索 广度优先搜索 并查集 2+🟠🀄️open in new window 🔗open in new window
204计数质数数组 数学 枚举 1+🟠🀄️open in new window 🔗open in new window
209长度最小的子数组[✓]数组 二分查找 前缀和 1+🟠🀄️open in new window 🔗open in new window
212单词搜索 II[✓]字典树 数组 字符串 2+🔴🀄️open in new window 🔗open in new window
213打家劫舍 II数组 动态规划🟠🀄️open in new window 🔗open in new window
215数组中的第K个最大元素[✓]数组 分治 快速选择 2+🟠🀄️open in new window 🔗open in new window
216组合总和 III[✓]数组 回溯🟠🀄️open in new window 🔗open in new window
217存在重复元素[✓]数组 哈希表 排序🟢🀄️open in new window 🔗open in new window
218天际线问题树状数组 线段树 数组 4+🔴🀄️open in new window 🔗open in new window
219存在重复元素 II[✓]数组 哈希表 滑动窗口🟢🀄️open in new window 🔗open in new window
220存在重复元素 III数组 桶排序 有序集合 2+🔴🀄️open in new window 🔗open in new window
221最大正方形[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
228汇总区间[✓]数组🟢🀄️open in new window 🔗open in new window
229多数元素 II数组 哈希表 计数 1+🟠🀄️open in new window 🔗open in new window
238除自身以外数组的乘积[✓]数组 前缀和🟠🀄️open in new window 🔗open in new window
239滑动窗口最大值[✓]队列 数组 滑动窗口 2+🔴🀄️open in new window 🔗open in new window
240搜索二维矩阵 II[✓]数组 二分查找 分治 1+🟠🀄️open in new window 🔗open in new window
243最短单词距离 🔒数组 字符串🟢🀄️open in new window 🔗open in new window
244最短单词距离 II 🔒设计 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
245最短单词距离 III 🔒数组 字符串🟠🀄️open in new window 🔗open in new window
247中心对称数 II 🔒递归 数组 字符串🟠🀄️open in new window 🔗open in new window
248中心对称数 III 🔒递归 数组 字符串🔴🀄️open in new window 🔗open in new window
249移位字符串分组 🔒数组 哈希表 字符串🟠🀄️open in new window 🔗open in new window
251展开二维向量 🔒设计 数组 双指针 1+🟠🀄️open in new window 🔗open in new window
252会议室 🔒数组 排序🟢🀄️open in new window 🔗open in new window
253会议室 II 🔒贪心 数组 双指针 3+🟠🀄️open in new window 🔗open in new window
255验证二叉搜索树的前序遍历序列 🔒 二叉搜索树 4+🟠🀄️open in new window 🔗open in new window
256粉刷房子 🔒数组 动态规划🟠🀄️open in new window 🔗open in new window
259较小的三数之和 🔒[✓]数组 双指针 二分查找 1+🟠🀄️open in new window 🔗open in new window
260只出现一次的数字 III位运算 数组🟠🀄️open in new window 🔗open in new window
265粉刷房子 II 🔒数组 动态规划🔴🀄️open in new window 🔗open in new window
268丢失的数字[✓]位运算 数组 哈希表 3+🟢🀄️open in new window 🔗open in new window
269火星词典 🔒深度优先搜索 广度优先搜索 3+🔴🀄️open in new window 🔗open in new window
271字符串的编码与解码 🔒设计 数组 字符串🟠🀄️open in new window 🔗open in new window
274H 指数[✓]数组 计数排序 排序🟠🀄️open in new window 🔗open in new window
275H 指数 II[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
280摆动排序 🔒贪心 数组 排序🟠🀄️open in new window 🔗open in new window
281锯齿迭代器 🔒设计 队列 数组 1+🟠🀄️open in new window 🔗open in new window
283移动零[✓]数组 双指针🟢🀄️open in new window 🔗open in new window
284窥视迭代器设计 数组 迭代器🟠🀄️open in new window 🔗open in new window
286墙与门 🔒广度优先搜索 数组 矩阵🟠🀄️open in new window 🔗open in new window
287寻找重复数[✓]位运算 数组 双指针 1+🟠🀄️open in new window 🔗open in new window
288单词的唯一缩写 🔒设计 数组 哈希表 1+🟠🀄️open in new window 🔗open in new window
289生命游戏[✓]数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
296最佳的碰头地点 🔒数组 数学 矩阵 1+🔴🀄️open in new window 🔗open in new window
300最长递增子序列[✓]数组 二分查找 动态规划🟠🀄️open in new window 🔗open in new window
302包含全部黑色像素的最小矩形 🔒深度优先搜索 广度优先搜索 数组 2+🔴🀄️open in new window 🔗open in new window
303区域和检索 - 数组不可变[✓]设计 数组 前缀和🟢🀄️open in new window 🔗open in new window
304二维区域和检索 - 矩阵不可变设计 数组 矩阵 1+🟠🀄️open in new window 🔗open in new window
305岛屿数量 II 🔒并查集 数组 哈希表🔴🀄️open in new window 🔗open in new window
307区域和检索 - 数组可修改[✓]设计 树状数组 线段树 1+🟠🀄️open in new window 🔗open in new window
308二维区域和检索 - 矩阵可修改 🔒设计 树状数组 线段树 2+🔴🀄️open in new window 🔗open in new window
309买卖股票的最佳时机含冷冻期[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
311稀疏矩阵的乘法 🔒数组 哈希表 矩阵🟠🀄️open in new window 🔗open in new window
312戳气球数组 动态规划🔴🀄️open in new window 🔗open in new window
313超级丑数数组 数学 动态规划🟠🀄️open in new window 🔗open in new window
315计算右侧小于当前元素的个数树状数组 线段树 数组 4+🔴🀄️open in new window 🔗open in new window
317离建筑物最近的距离 🔒广度优先搜索 数组 矩阵🔴🀄️open in new window 🔗open in new window
318最大单词长度乘积位运算 数组 字符串🟠🀄️open in new window 🔗open in new window
321拼接最大数 贪心 数组 2+🔴🀄️open in new window 🔗open in new window
322零钱兑换[✓]广度优先搜索 数组 动态规划🟠🀄️open in new window 🔗open in new window
324摆动排序 II贪心 数组 分治 2+🟠🀄️open in new window 🔗open in new window
325和等于 k 的最长子数组长度 🔒数组 哈希表 前缀和🟠🀄️open in new window 🔗open in new window
327区间和的个数树状数组 线段树 数组 4+🔴🀄️open in new window 🔗open in new window
329矩阵中的最长递增路径深度优先搜索 广度优先搜索 5+🔴🀄️open in new window 🔗open in new window
330按要求补齐数组贪心 数组🔴🀄️open in new window 🔗open in new window
334递增的三元子序列[✓]贪心 数组🟠🀄️open in new window 🔗open in new window
335路径交叉几何 数组 数学🔴🀄️open in new window 🔗open in new window
336回文对字典树 数组 哈希表 1+🔴🀄️open in new window 🔗open in new window
346数据流中的移动平均值 🔒[✓]设计 队列 数组 1+🟢🀄️open in new window 🔗open in new window
347前 K 个高频元素[✓]数组 哈希表 分治 5+🟠🀄️open in new window 🔗open in new window
348设计井字棋 🔒设计 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
349两个数组的交集[✓]数组 哈希表 双指针 2+🟢🀄️open in new window 🔗open in new window
350两个数组的交集 II[✓]数组 哈希表 双指针 2+🟢🀄️open in new window 🔗open in new window
353贪吃蛇 🔒设计 队列 数组 2+🟠🀄️open in new window 🔗open in new window
354俄罗斯套娃信封问题[✓]数组 二分查找 动态规划 1+🔴🀄️open in new window 🔗open in new window
356直线镜像 🔒数组 哈希表 数学🟠🀄️open in new window 🔗open in new window
360有序转化数组 🔒数组 数学 双指针 1+🟠🀄️open in new window 🔗open in new window
361轰炸敌人 🔒数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
362敲击计数器 🔒设计 队列 数组 2+🟠🀄️open in new window 🔗open in new window
363矩形区域不超过 K 的最大数值和数组 二分查找 矩阵 2+🔴🀄️open in new window 🔗open in new window
368最大整除子集数组 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
370区间加法 🔒数组 前缀和🟠🀄️open in new window 🔗open in new window
373查找和最小的 K 对数字[✓]数组 堆(优先队列)🟠🀄️open in new window 🔗open in new window
376摆动序列贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
377组合总和 Ⅳ数组 动态规划🟠🀄️open in new window 🔗open in new window
378有序矩阵中第 K 小的元素[✓]数组 二分查找 矩阵 2+🟠🀄️open in new window 🔗open in new window
379电话目录管理系统 🔒[✓]设计 队列 数组 2+🟠🀄️open in new window 🔗open in new window
380O(1) 时间插入、删除和获取随机元素[✓]设计 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
381O(1) 时间插入、删除和获取随机元素 - 允许重复设计 数组 哈希表 2+🔴🀄️open in new window 🔗open in new window
384打乱数组数组 数学 随机化🟠🀄️open in new window 🔗open in new window
391完美矩形数组 扫描线🔴🀄️open in new window 🔗open in new window
393UTF-8 编码验证位运算 数组🟠🀄️open in new window 🔗open in new window
396旋转函数数组 数学 动态规划🟠🀄️open in new window 🔗open in new window
399除法求值[✓]深度优先搜索 广度优先搜索 并查集 4+🟠🀄️open in new window 🔗open in new window
403青蛙过河数组 动态规划🔴🀄️open in new window 🔗open in new window
406根据身高重建队列树状数组 线段树 数组 1+🟠🀄️open in new window 🔗open in new window
407接雨水 II广度优先搜索 数组 矩阵 1+🔴🀄️open in new window 🔗open in new window
410分割数组的最大值贪心 数组 二分查找 2+🔴🀄️open in new window 🔗open in new window
411最短独占单词缩写 🔒位运算 数组 字符串 1+🔴🀄️open in new window 🔗open in new window
413等差数列划分数组 动态规划 滑动窗口🟠🀄️open in new window 🔗open in new window
414第三大的数[✓]数组 排序🟢🀄️open in new window 🔗open in new window
416分割等和子集[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
417太平洋大西洋水流问题深度优先搜索 广度优先搜索 数组 1+🟠🀄️open in new window 🔗open in new window
418屏幕可显示句子的数量 🔒数组 字符串 动态规划🟠🀄️open in new window 🔗open in new window
419棋盘上的战舰深度优先搜索 数组 矩阵🟠🀄️open in new window 🔗open in new window
421数组中两个数的最大异或值位运算 字典树 数组 1+🟠🀄️open in new window 🔗open in new window
422有效的单词方块 🔒数组 矩阵🟢🀄️open in new window 🔗open in new window
425单词方块 🔒字典树 数组 字符串 1+🔴🀄️open in new window 🔗open in new window
427建立四叉树[✓] 数组 分治 1+🟠🀄️open in new window 🔗open in new window
435无重叠区间[✓]贪心 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
436寻找右区间[✓]数组 二分查找 排序🟠🀄️open in new window 🔗open in new window
442数组中重复的数据[✓]数组 哈希表🟠🀄️open in new window 🔗open in new window
444序列重建 🔒 拓扑排序 数组🟠🀄️open in new window 🔗open in new window
446等差数列划分 II - 子序列数组 动态规划🔴🀄️open in new window 🔗open in new window
447回旋镖的数量数组 哈希表 数学🟠🀄️open in new window 🔗open in new window
448找到所有数组中消失的数字[✓]数组 哈希表🟢🀄️open in new window 🔗open in new window
452用最少数量的箭引爆气球[✓]贪心 数组 排序🟠🀄️open in new window 🔗open in new window
453最小操作次数使数组元素相等数组 数学🟠🀄️open in new window 🔗open in new window
454四数相加 II数组 哈希表🟠🀄️open in new window 🔗open in new window
455分发饼干[✓]贪心 数组 双指针 1+🟢🀄️open in new window 🔗open in new window
456132 模式 数组 二分查找 2+🟠🀄️open in new window 🔗open in new window
457环形数组是否存在循环数组 哈希表 双指针🟠🀄️open in new window 🔗open in new window
462最小操作次数使数组元素相等 II数组 数学 排序🟠🀄️open in new window 🔗open in new window
463岛屿的周长[✓]深度优先搜索 广度优先搜索 数组 1+🟢🀄️open in new window 🔗open in new window
465最优账单平衡 🔒位运算 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
469凸多边形 🔒几何 数组 数学🟠🀄️open in new window 🔗open in new window
472连接词深度优先搜索 字典树 数组 2+🔴🀄️open in new window 🔗open in new window
473火柴拼正方形位运算 数组 动态规划 2+🟠🀄️open in new window 🔗open in new window
474一和零[✓]数组 字符串 动态规划🟠🀄️open in new window 🔗open in new window
475供暖器数组 双指针 二分查找 1+🟠🀄️open in new window 🔗open in new window
477汉明距离总和位运算 数组 数学🟠🀄️open in new window 🔗open in new window
480滑动窗口中位数数组 哈希表 滑动窗口 1+🔴🀄️open in new window 🔗open in new window
484寻找排列 🔒 贪心 数组 1+🟠🀄️open in new window 🔗open in new window
485最大连续 1 的个数[✓]数组🟢🀄️open in new window 🔗open in new window
486预测赢家递归 数组 数学 2+🟠🀄️open in new window 🔗open in new window
487最大连续1的个数 II 🔒数组 动态规划 滑动窗口🟠🀄️open in new window 🔗open in new window
490迷宫 🔒深度优先搜索 广度优先搜索 数组 1+🟠🀄️open in new window 🔗open in new window
491非递减子序列位运算 数组 哈希表 1+🟠🀄️open in new window 🔗open in new window
493翻转对树状数组 线段树 数组 4+🔴🀄️open in new window 🔗open in new window
494目标和[✓]数组 动态规划 回溯🟠🀄️open in new window 🔗open in new window
495提莫攻击[✓]数组 模拟🟢🀄️open in new window 🔗open in new window
496下一个更大元素 I[✓] 数组 哈希表 1+🟢🀄️open in new window 🔗open in new window
497非重叠矩形中的随机点水塘抽样 数组 数学 4+🟠🀄️open in new window 🔗open in new window
498对角线遍历[✓]数组 矩阵 模拟🟠🀄️open in new window 🔗open in new window
499迷宫 III 🔒深度优先搜索 广度优先搜索 5+🔴🀄️open in new window 🔗open in new window
500键盘行[✓]数组 哈希表 字符串🟢🀄️open in new window 🔗open in new window
502IPO[✓]贪心 数组 排序 1+🔴🀄️open in new window 🔗open in new window
503下一个更大元素 II[✓] 数组 单调栈🟠🀄️open in new window 🔗open in new window
505迷宫 II 🔒深度优先搜索 广度优先搜索 4+🟠🀄️open in new window 🔗open in new window
506相对名次[✓]数组 排序 堆(优先队列)🟢🀄️open in new window 🔗open in new window
517超级洗衣机贪心 数组🔴🀄️open in new window 🔗open in new window
518零钱兑换 II[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
522最长特殊序列 II数组 哈希表 双指针 2+🟠🀄️open in new window 🔗open in new window
523连续的子数组和数组 哈希表 数学 1+🟠🀄️open in new window 🔗open in new window
524通过删除字母匹配到字典里最长单词数组 双指针 字符串 1+🟠🀄️open in new window 🔗open in new window
525连续数组数组 哈希表 前缀和🟠🀄️open in new window 🔗open in new window
526优美的排列位运算 数组 动态规划 2+🟠🀄️open in new window 🔗open in new window
527单词缩写 🔒贪心 字典树 数组 2+🔴🀄️open in new window 🔗open in new window
528按权重随机选择[✓]数组 数学 二分查找 2+🟠🀄️open in new window 🔗open in new window
529扫雷游戏深度优先搜索 广度优先搜索 数组 1+🟠🀄️open in new window 🔗open in new window
531孤独像素 I 🔒数组 哈希表 矩阵🟠🀄️open in new window 🔗open in new window
532数组中的 k-diff 数对数组 哈希表 双指针 2+🟠🀄️open in new window 🔗open in new window
533孤独像素 II 🔒数组 哈希表 矩阵🟠🀄️open in new window 🔗open in new window
539最小时间差数组 数学 字符串 1+🟠🀄️open in new window 🔗open in new window
540有序数组中的单一元素[✓]数组 二分查找🟠🀄️open in new window 🔗open in new window
54201 矩阵广度优先搜索 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
546移除盒子记忆化搜索 数组 动态规划🔴🀄️open in new window 🔗open in new window
548将数组分割成和相等的子数组 🔒数组 哈希表 前缀和🔴🀄️open in new window 🔗open in new window
553最优除法数组 数学 动态规划🟠🀄️open in new window 🔗open in new window
554砖墙数组 哈希表🟠🀄️open in new window 🔗open in new window
555分割连接字符串 🔒贪心 数组 字符串🟠🀄️open in new window 🔗open in new window
560和为 K 的子数组[✓]数组 哈希表 前缀和🟠🀄️open in new window 🔗open in new window
561数组拆分[✓]贪心 数组 计数排序 1+🟢🀄️open in new window 🔗open in new window
562矩阵中最长的连续1线段 🔒数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
565数组嵌套深度优先搜索 数组🟠🀄️open in new window 🔗open in new window
566重塑矩阵[✓]数组 矩阵 模拟🟢🀄️open in new window 🔗open in new window
568最大休假天数 🔒数组 动态规划 矩阵🔴🀄️open in new window 🔗open in new window
573松鼠模拟 🔒数组 数学🟠🀄️open in new window 🔗open in new window
575分糖果[✓]数组 哈希表🟢🀄️open in new window 🔗open in new window
581最短无序连续子数组 贪心 数组 3+🟠🀄️open in new window 🔗open in new window
582杀掉进程 🔒 深度优先搜索 广度优先搜索 2+🟠🀄️open in new window 🔗open in new window
587安装栅栏几何 数组 数学🔴🀄️open in new window 🔗open in new window
594最长和谐子序列[✓]数组 哈希表 计数 2+🟢🀄️open in new window 🔗open in new window
598区间加法 II[✓]数组 数学🟢🀄️open in new window 🔗open in new window
599两个列表的最小索引总和[✓]数组 哈希表 字符串🟢🀄️open in new window 🔗open in new window
604迭代压缩字符串 🔒设计 数组 字符串 1+🟢🀄️open in new window 🔗open in new window
605种花问题[✓]贪心 数组🟢🀄️open in new window 🔗open in new window
609在系统中查找重复文件数组 哈希表 字符串🟠🀄️open in new window 🔗open in new window
611有效三角形的个数[✓]贪心 数组 双指针 2+🟠🀄️open in new window 🔗open in new window
616给字符串添加加粗标签 🔒字典树 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
621任务调度器贪心 数组 哈希表 3+🟠🀄️open in new window 🔗open in new window
622设计循环队列[✓]设计 队列 数组 1+🟠🀄️open in new window 🔗open in new window
624数组列表中的最大距离贪心 数组🟠🀄️open in new window 🔗open in new window
628三个数的最大乘积[✓]数组 数学 排序🟢🀄️open in new window 🔗open in new window
630课程表 III贪心 数组 排序 1+🔴🀄️open in new window 🔗open in new window
631设计 Excel 求和公式 🔒 设计 拓扑排序 2+🔴🀄️open in new window 🔗open in new window
632最小区间[✓]贪心 数组 哈希表 3+🔴🀄️open in new window 🔗open in new window
636函数的独占时间 数组🟠🀄️open in new window 🔗open in new window
638大礼包位运算 记忆化搜索 数组 3+🟠🀄️open in new window 🔗open in new window
641设计循环双端队列[✓]设计 队列 数组 1+🟠🀄️open in new window 🔗open in new window
643子数组最大平均数 I[✓]数组 滑动窗口🟢🀄️open in new window 🔗open in new window
644子数组最大平均数 II 🔒数组 二分查找 前缀和🔴🀄️open in new window 🔗open in new window
645错误的集合[✓]位运算 数组 哈希表 1+🟢🀄️open in new window 🔗open in new window
646最长数对链贪心 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
648单词替换字典树 数组 哈希表 1+🟠🀄️open in new window 🔗open in new window
654最大二叉树[✓] 数组 3+🟠🀄️open in new window 🔗open in new window
656成本最小路径 🔒数组 动态规划🔴🀄️open in new window 🔗open in new window
658找到 K 个最接近的元素[✓]数组 双指针 二分查找 3+🟠🀄️open in new window 🔗open in new window
659分割数组为连续子序列贪心 数组 哈希表 1+🟠🀄️open in new window 🔗open in new window
661图片平滑器[✓]数组 矩阵🟢🀄️open in new window 🔗open in new window
665非递减数列数组🟠🀄️open in new window 🔗open in new window
666路径总和 IV 🔒 深度优先搜索 数组 2+🟠🀄️open in new window 🔗open in new window
667优美的排列 II数组 数学🟠🀄️open in new window 🔗open in new window
673最长递增子序列的个数树状数组 线段树 数组 1+🟠🀄️open in new window 🔗open in new window
674最长连续递增序列[✓]数组🟢🀄️open in new window 🔗open in new window
675为高尔夫比赛砍树广度优先搜索 数组 矩阵 1+🔴🀄️open in new window 🔗open in new window
67924 点游戏数组 数学 回溯🔴🀄️open in new window 🔗open in new window
682棒球比赛[✓] 数组 模拟🟢🀄️open in new window 🔗open in new window
683K 个关闭的灯泡 🔒树状数组 线段树 队列 5+🔴🀄️open in new window 🔗open in new window