跳至主要內容

动态规划


动态规划

全部标签

数据结构

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

算法

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

其他

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


题号标题题解标签难度力扣
5最长回文子串[✓]双指针 字符串 动态规划🟠🀄️open in new window 🔗open in new window
10正则表达式匹配[✓]递归 字符串 动态规划🔴🀄️open in new window 🔗open in new window
22括号生成[✓]字符串 动态规划 回溯🟠🀄️open in new window 🔗open in new window
32最长有效括号[✓] 字符串 动态规划🔴🀄️open in new window 🔗open in new window
42接雨水[✓] 数组 双指针 2+🔴🀄️open in new window 🔗open in new window
44通配符匹配[✓]贪心 递归 字符串 1+🔴🀄️open in new window 🔗open in new window
45跳跃游戏 II[✓]贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
53最大子数组和[✓]数组 分治 动态规划🟠🀄️open in new window 🔗open in new window
55跳跃游戏[✓]贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
62不同路径[✓]数学 动态规划 组合数学🟠🀄️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
70爬楼梯[✓]记忆化搜索 数学 动态规划🟢🀄️open in new window 🔗open in new window
72编辑距离[✓]字符串 动态规划🟠🀄️open in new window 🔗open in new window
85最大矩形[✓] 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
87扰乱字符串字符串 动态规划🔴🀄️open in new window 🔗open in new window
91解码方法字符串 动态规划🟠🀄️open in new window 🔗open in new window
95不同的二叉搜索树 II[✓] 二叉搜索树 动态规划 2+🟠🀄️open in new window 🔗open in new window
96不同的二叉搜索树[✓] 二叉搜索树 数学 2+🟠🀄️open in new window 🔗open in new window
97交错字符串[✓]字符串 动态规划🟠🀄️open in new window 🔗open in new window
115不同的子序列字符串 动态规划🔴🀄️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
124二叉树中的最大路径和[✓] 深度优先搜索 动态规划 1+🔴🀄️open in new window 🔗open in new window
131分割回文串[✓]字符串 动态规划 回溯🟠🀄️open in new window 🔗open in new window
132分割回文串 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
152乘积最大子数组[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
174地下城游戏[✓]数组 动态规划 矩阵🔴🀄️open in new window 🔗open in new window
188买卖股票的最佳时机 IV[✓]数组 动态规划🔴🀄️open in new window 🔗open in new window
198打家劫舍[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
213打家劫舍 II数组 动态规划🟠🀄️open in new window 🔗open in new window
221最大正方形[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
233数字 1 的个数[✓]递归 数学 动态规划🔴🀄️open in new window 🔗open in new window
241为运算表达式设计优先级递归 记忆化搜索 数学 2+🟠🀄️open in new window 🔗open in new window
256粉刷房子 🔒数组 动态规划🟠🀄️open in new window 🔗open in new window
264丑数 II[✓]哈希表 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
265粉刷房子 II 🔒数组 动态规划🔴🀄️open in new window 🔗open in new window
276栅栏涂色 🔒动态规划🟠🀄️open in new window 🔗open in new window
279完全平方数[✓]广度优先搜索 数学 动态规划🟠🀄️open in new window 🔗open in new window
294翻转游戏 II 🔒记忆化搜索 数学 动态规划 2+🟠🀄️open in new window 🔗open in new window
300最长递增子序列[✓]数组 二分查找 动态规划🟠🀄️open in new window 🔗open in new window
309买卖股票的最佳时机含冷冻期[✓]数组 动态规划🟠🀄️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
322零钱兑换[✓]广度优先搜索 数组 动态规划🟠🀄️open in new window 🔗open in new window
329矩阵中的最长递增路径深度优先搜索 广度优先搜索 5+🔴🀄️open in new window 🔗open in new window
333最大二叉搜索子树 🔒 深度优先搜索 二叉搜索树 2+🟠🀄️open in new window 🔗open in new window
337打家劫舍 III 深度优先搜索 动态规划 1+🟠🀄️open in new window 🔗open in new window
338比特位计数[✓]位运算 动态规划🟢🀄️open in new window 🔗open in new window
343整数拆分[✓]数学 动态规划🟠🀄️open in new window 🔗open in new window
351安卓系统手势解锁 🔒位运算 动态规划 回溯 1+🟠🀄️open in new window 🔗open in new window
354俄罗斯套娃信封问题[✓]数组 二分查找 动态规划 1+🔴🀄️open in new window 🔗open in new window
357统计各位数字都不同的数字个数数学 动态规划 回溯🟠🀄️open in new window 🔗open in new window
361轰炸敌人 🔒数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
368最大整除子集数组 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
375猜数字大小 II[✓]数学 动态规划 博弈🟠🀄️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
392判断子序列[✓]双指针 字符串 动态规划🟢🀄️open in new window 🔗open in new window
396旋转函数数组 数学 动态规划🟠🀄️open in new window 🔗open in new window
397整数替换贪心 位运算 记忆化搜索 1+🟠🀄️open in new window 🔗open in new window
403青蛙过河数组 动态规划🔴🀄️open in new window 🔗open in new window
410分割数组的最大值贪心 数组 二分查找 2+🔴🀄️open in new window 🔗open in new window
413等差数列划分数组 动态规划 滑动窗口🟠🀄️open in new window 🔗open in new window
416分割等和子集[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
418屏幕可显示句子的数量 🔒数组 字符串 动态规划🟠🀄️open in new window 🔗open in new window
435无重叠区间[✓]贪心 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
446等差数列划分 II - 子序列数组 动态规划🔴🀄️open in new window 🔗open in new window
458可怜的小猪数学 动态规划 组合数学🔴🀄️open in new window 🔗open in new window
464我能赢吗位运算 记忆化搜索 数学 3+🟠🀄️open in new window 🔗open in new window
465最优账单平衡 🔒位运算 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
466统计重复个数字符串 动态规划🔴🀄️open in new window 🔗open in new window
467环绕字符串中唯一的子字符串字符串 动态规划🟠🀄️open in new window 🔗open in new window
471编码最短长度的字符串 🔒字符串 动态规划🔴🀄️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
486预测赢家递归 数组 数学 2+🟠🀄️open in new window 🔗open in new window
487最大连续1的个数 II 🔒数组 动态规划 滑动窗口🟠🀄️open in new window 🔗open in new window
488祖玛游戏 广度优先搜索 记忆化搜索 2+🔴🀄️open in new window 🔗open in new window
494目标和[✓]数组 动态规划 回溯🟠🀄️open in new window 🔗open in new window
509斐波那契数[✓]递归 记忆化搜索 数学 1+🟢🀄️open in new window 🔗open in new window
514自由之路[✓]深度优先搜索 广度优先搜索 字符串 1+🔴🀄️open in new window 🔗open in new window
516最长回文子序列[✓]字符串 动态规划🟠🀄️open in new window 🔗open in new window
518零钱兑换 II[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
526优美的排列位运算 数组 动态规划 2+🟠🀄️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
552学生出勤记录 II动态规划🔴🀄️open in new window 🔗open in new window
553最优除法数组 数学 动态规划🟠🀄️open in new window 🔗open in new window
562矩阵中最长的连续1线段 🔒数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
568最大休假天数 🔒数组 动态规划 矩阵🔴🀄️open in new window 🔗open in new window
576出界的路径数动态规划🟠🀄️open in new window 🔗open in new window
583两个字符串的删除操作[✓]字符串 动态规划🟠🀄️open in new window 🔗open in new window
600不含连续1的非负整数动态规划🔴🀄️open in new window 🔗open in new window
629K 个逆序对数组动态规划🔴🀄️open in new window 🔗open in new window
634寻找数组的错位排列 🔒数学 动态规划🟠🀄️open in new window 🔗open in new window
638大礼包位运算 记忆化搜索 数组 3+🟠🀄️open in new window 🔗open in new window
639解码方法 II字符串 动态规划🔴🀄️open in new window 🔗open in new window
646最长数对链贪心 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
647回文子串双指针 字符串 动态规划🟠🀄️open in new window 🔗open in new window
650两个键的键盘数学 动态规划🟠🀄️open in new window 🔗open in new window
651四个键的键盘 🔒数学 动态规划🟠🀄️open in new window 🔗open in new window
656成本最小路径 🔒数组 动态规划🔴🀄️open in new window 🔗open in new window
664奇怪的打印机字符串 动态规划🔴🀄️open in new window 🔗open in new window
673最长递增子序列的个数树状数组 线段树 数组 1+🟠🀄️open in new window 🔗open in new window
678有效的括号字符串[✓] 贪心 字符串 1+🟠🀄️open in new window 🔗open in new window
688骑士在棋盘上的概率动态规划🟠🀄️open in new window 🔗open in new window
689三个无重叠子数组的最大和数组 动态规划🔴🀄️open in new window 🔗open in new window
691贴纸拼词位运算 数组 字符串 3+🔴🀄️open in new window 🔗open in new window
698划分为k个相等的子集位运算 记忆化搜索 数组 3+🟠🀄️open in new window 🔗open in new window
712两个字符串的最小ASCII删除和[✓]字符串 动态规划🟠🀄️open in new window 🔗open in new window
714买卖股票的最佳时机含手续费[✓]贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
718最长重复子数组数组 二分查找 动态规划 3+🟠🀄️open in new window 🔗open in new window
727最小窗口子序列 🔒字符串 动态规划 滑动窗口🔴🀄️open in new window 🔗open in new window
730统计不同回文子序列字符串 动态规划🔴🀄️open in new window 🔗open in new window
740删除并获得点数数组 哈希表 动态规划🟠🀄️open in new window 🔗open in new window
741摘樱桃数组 动态规划 矩阵🔴🀄️open in new window 🔗open in new window
746使用最小花费爬楼梯[✓]数组 动态规划🟢🀄️open in new window 🔗open in new window
750角矩形的数量 🔒数组 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
764最大加号标志数组 动态规划🟠🀄️open in new window 🔗open in new window
787K 站中转内最便宜的航班深度优先搜索 广度优先搜索 3+🟠🀄️open in new window 🔗open in new window
788旋转数字数学 动态规划🟠🀄️open in new window 🔗open in new window
790多米诺和托米诺平铺[✓]动态规划🟠🀄️open in new window 🔗open in new window
792匹配子序列的单词数字典树 数组 哈希表 4+🟠🀄️open in new window 🔗open in new window
799香槟塔动态规划🟠🀄️open in new window 🔗open in new window
801使序列递增的最小交换次数数组 动态规划🔴🀄️open in new window 🔗open in new window
805数组的均值分割位运算 数组 数学 2+🔴🀄️open in new window 🔗open in new window
808分汤数学 动态规划 概率与统计🟠🀄️open in new window 🔗open in new window
813最大平均值和的分组数组 动态规划 前缀和🟠🀄️open in new window 🔗open in new window
818赛车动态规划🔴🀄️open in new window 🔗open in new window
823带因子的二叉树数组 哈希表 动态规划 1+🟠🀄️open in new window 🔗open in new window
828统计子串中的唯一字符哈希表 字符串 动态规划🔴🀄️open in new window 🔗open in new window
834树中距离之和 深度优先搜索 1+🔴🀄️open in new window 🔗open in new window
837新 21 点数学 动态规划 滑动窗口 1+🟠🀄️open in new window 🔗open in new window
838推多米诺双指针 字符串 动态规划🟠🀄️open in new window 🔗open in new window
845数组中的最长山脉[✓]数组 双指针 动态规划 1+🟠🀄️open in new window 🔗open in new window
847访问所有节点的最短路径位运算 广度优先搜索 2+🔴🀄️open in new window 🔗open in new window
871最低加油次数贪心 数组 动态规划 1+🔴🀄️open in new window 🔗open in new window
873最长的斐波那契子序列的长度数组 哈希表 动态规划🟠🀄️open in new window 🔗open in new window
877石子游戏数组 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
879盈利计划数组 动态规划🔴🀄️open in new window 🔗open in new window
887鸡蛋掉落数学 二分查找 动态规划🔴🀄️open in new window 🔗open in new window
894所有可能的真二叉树 递归 记忆化搜索 2+🟠🀄️open in new window 🔗open in new window
898子数组按位或操作位运算 数组 动态规划🟠🀄️open in new window 🔗open in new window
902最大为 N 的数字组合数组 数学 字符串 2+🔴🀄️open in new window 🔗open in new window
903DI 序列的有效排列字符串 动态规划 前缀和🔴🀄️open in new window 🔗open in new window
907子数组的最小值之和 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
913猫和老鼠 拓扑排序 记忆化搜索 3+🔴🀄️open in new window 🔗open in new window
918环形子数组的最大和[✓]队列 数组 分治 2+🟠🀄️open in new window 🔗open in new window
920播放列表的数量数学 动态规划 组合数学🔴🀄️open in new window 🔗open in new window
926将字符串翻转到单调递增字符串 动态规划🟠🀄️open in new window 🔗open in new window
931下降路径最小和[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
935骑士拨号器动态规划🟠🀄️open in new window 🔗open in new window
940不同的子序列 II字符串 动态规划🔴🀄️open in new window 🔗open in new window
943最短超级串位运算 数组 字符串 2+🔴🀄️open in new window 🔗open in new window
956最高的广告牌数组 动态规划🔴🀄️open in new window 🔗open in new window
960删列造序 III数组 字符串 动态规划🔴🀄️open in new window 🔗open in new window
964表示数字的最少运算符记忆化搜索 数学 动态规划🔴🀄️open in new window 🔗open in new window
968监控二叉树 深度优先搜索 动态规划 1+🔴🀄️open in new window 🔗open in new window
975奇偶跳 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
978最长湍流子数组数组 动态规划 滑动窗口🟠🀄️open in new window 🔗open in new window
983最低票价数组 动态规划🟠🀄️open in new window 🔗open in new window
996平方数组的数目位运算 数组 哈希表 4+🔴🀄️open in new window 🔗open in new window
1000合并石头的最低成本数组 动态规划 前缀和🔴🀄️open in new window 🔗open in new window
1012至少有 1 位重复的数字数学 动态规划🔴🀄️open in new window 🔗open in new window
1014最佳观光组合数组 动态规划🟠🀄️open in new window 🔗open in new window
1024视频拼接贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
1025除数博弈脑筋急转弯 数学 动态规划 1+🟢🀄️open in new window 🔗open in new window
1027最长等差数列数组 哈希表 二分查找 1+🟠🀄️open in new window 🔗open in new window
1031两个非重叠子数组的最大和数组 动态规划 滑动窗口🟠🀄️open in new window 🔗open in new window
1035不相交的线数组 动态规划🟠🀄️open in new window 🔗open in new window
1039多边形三角剖分的最低得分数组 动态规划🟠🀄️open in new window 🔗open in new window
1043分隔数组以得到最大和数组 动态规划🟠🀄️open in new window 🔗open in new window
1048最长字符串链数组 哈希表 双指针 3+🟠🀄️open in new window 🔗open in new window
1049最后一块石头的重量 II[✓]数组 动态规划🟠🀄️open in new window 🔗open in new window
1062最长重复子串 🔒字符串 二分查找 动态规划 3+🟠🀄️open in new window 🔗open in new window
1066校园自行车分配 II 🔒位运算 数组 动态规划 2+🟠🀄️open in new window 🔗open in new window
1067范围内的数字计数 🔒数学 动态规划🔴🀄️open in new window 🔗open in new window
1092最短公共超序列字符串 动态规划🔴🀄️open in new window 🔗open in new window
1105填充书架数组 动态规划🟠🀄️open in new window 🔗open in new window
1125最小的必要团队位运算 数组 动态规划 1+🔴🀄️open in new window 🔗open in new window
1130叶值的最小代价生成树 贪心 数组 2+🟠🀄️open in new window 🔗open in new window
1137第 N 个泰波那契数[✓]记忆化搜索 数学 动态规划🟢🀄️open in new window 🔗open in new window
1139最大的以 1 为边界的正方形数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
1140石子游戏 II数组 数学 动态规划 2+🟠🀄️open in new window 🔗open in new window
1143最长公共子序列[✓]字符串 动态规划🟠🀄️open in new window 🔗open in new window
1147段式回文贪心 双指针 字符串 3+🔴🀄️open in new window 🔗open in new window
1155掷骰子等于目标和的方法数动态规划🟠🀄️open in new window 🔗open in new window
1162地图分析广度优先搜索 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
1182与目标颜色间的最短距离 🔒数组 二分查找 动态规划🟠🀄️open in new window 🔗open in new window
1186删除一次得到子数组最大和数组 动态规划🟠🀄️open in new window 🔗open in new window
1187使数组严格递增数组 二分查找 动态规划 1+🔴🀄️open in new window 🔗open in new window
1191K 次串联后最大子数组之和数组 动态规划🟠🀄️open in new window 🔗open in new window
1216验证回文串 III 🔒字符串 动态规划🔴🀄️open in new window 🔗open in new window
1218最长定差子序列数组 哈希表 动态规划🟠🀄️open in new window 🔗open in new window
1220统计元音字母序列的数目动态规划🔴🀄️open in new window 🔗open in new window
1223掷骰子模拟数组 动态规划🔴🀄️open in new window 🔗open in new window
1227飞机座位分配概率脑筋急转弯 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
1230抛掷硬币 🔒数组 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
1235规划兼职工作数组 二分查找 动态规划 1+🔴🀄️open in new window 🔗open in new window
1246删除回文子数组 🔒数组 动态规划🔴🀄️open in new window 🔗open in new window
1255得分最高的单词集合位运算 数组 字符串 3+🔴🀄️open in new window 🔗open in new window
1259不相交的握手 🔒数学 动态规划🔴🀄️open in new window 🔗open in new window
1262可被三整除的最大和贪心 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
1269停在原地的方案数动态规划🔴🀄️open in new window 🔗open in new window
1277统计全为 1 的正方形子矩阵[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
1278分割回文串 III字符串 动态规划🔴🀄️open in new window 🔗open in new window
1289下降路径最小和 II数组 动态规划 矩阵🔴🀄️open in new window 🔗open in new window
1301最大得分的路径数目数组 动态规划 矩阵🔴🀄️open in new window 🔗open in new window
1312让字符串成为回文串的最少插入次数[✓]字符串 动态规划🔴🀄️open in new window 🔗open in new window
1320二指输入的的最小距离字符串 动态规划🔴🀄️open in new window 🔗open in new window
1326灌溉花园的最少水龙头数目贪心 数组 动态规划🔴🀄️open in new window 🔗open in new window
1334阈值距离内邻居最少的城市 动态规划 最短路🟠🀄️open in new window 🔗open in new window
1335工作计划的最低难度数组 动态规划🔴🀄️open in new window 🔗open in new window
1340跳跃游戏 V数组 动态规划 排序🔴🀄️open in new window 🔗open in new window
1349参加考试的最大学生数位运算 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
1359有效的快递序列数目数学 动态规划 组合数学🔴🀄️open in new window 🔗open in new window
1363形成三的最大倍数贪心 数组 动态规划🔴🀄️open in new window 🔗open in new window
1372二叉树中的最长交错路径[✓] 深度优先搜索 动态规划 1+🟠🀄️open in new window 🔗open in new window
1373二叉搜索子树的最大键值和 深度优先搜索 二叉搜索树 2+🔴🀄️open in new window 🔗open in new window
1387将整数按权重排序记忆化搜索 动态规划 排序🟠🀄️open in new window 🔗open in new window
13883n 块披萨贪心 数组 动态规划 1+🔴🀄️open in new window 🔗open in new window
1395统计作战单位数树状数组 线段树 数组 1+🟠🀄️open in new window 🔗open in new window
1397找到所有好字符串字符串 动态规划 字符串匹配🔴🀄️open in new window 🔗open in new window
1402做菜顺序贪心 数组 动态规划 1+🔴🀄️open in new window 🔗open in new window
1406石子游戏 III数组 数学 动态规划 1+🔴🀄️open in new window 🔗open in new window
1411给 N x 3 网格图涂色的方案数动态规划🔴🀄️open in new window 🔗open in new window
1416恢复数组字符串 动态规划🔴🀄️open in new window 🔗open in new window
1420生成数组动态规划 前缀和🔴🀄️open in new window 🔗open in new window
1425带限制的子序列和队列 数组 动态规划 3+🔴🀄️open in new window 🔗open in new window
1434每个人戴不同帽子的方案数位运算 数组 动态规划 1+🔴🀄️open in new window 🔗open in new window
1444切披萨的方案数记忆化搜索 数组 动态规划 1+🔴🀄️open in new window 🔗open in new window
1449数位成本和为目标值的最大数字数组 动态规划🔴🀄️open in new window 🔗open in new window
1458两个子序列的最大点积数组 动态规划🔴🀄️open in new window 🔗open in new window
1463摘樱桃 II数组 动态规划 矩阵🔴🀄️open in new window 🔗open in new window
1467两个盒子中球的颜色数相同的概率数组 数学 动态规划 3+🔴🀄️open in new window 🔗open in new window
1473粉刷房子 III数组 动态规划🔴🀄️open in new window 🔗open in new window
1477找两个和为目标值且不重叠的子数组数组 哈希表 二分查找 2+🟠🀄️open in new window 🔗open in new window
1478安排邮筒数组 数学 动态规划 1+🔴🀄️open in new window 🔗open in new window
1483树节点的第 K 个祖先 深度优先搜索 广度优先搜索 3+🔴🀄️open in new window 🔗open in new window
1493删掉一个元素以后全为 1 的最长子数组[✓]数组 动态规划 滑动窗口🟠🀄️open in new window 🔗open in new window
1494并行课程 II位运算 动态规划 1+🔴🀄️open in new window 🔗open in new window
1504统计全 1 子矩形 数组 动态规划 2+🟠🀄️open in new window 🔗open in new window
1510石子游戏 IV数学 动态规划 博弈🔴🀄️open in new window 🔗open in new window
1524和为奇数的子数组数目数组 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
1525字符串的好分割数目位运算 哈希表 字符串 1+🟠🀄️open in new window 🔗open in new window
1526形成目标数组的子数组最少增加次数 贪心 数组 2+🔴🀄️open in new window 🔗open in new window
1531压缩字符串 II字符串 动态规划🔴🀄️open in new window 🔗open in new window
1537最大得分贪心 数组 双指针 1+🔴🀄️open in new window 🔗open in new window
1547切棍子的最小成本数组 动态规划 排序🔴🀄️open in new window 🔗open in new window
1548图中最相似的路径 🔒 动态规划🔴🀄️open in new window 🔗open in new window
1553吃掉 N 个橘子的最少天数记忆化搜索 动态规划🔴🀄️open in new window 🔗open in new window
1563石子游戏 V数组 数学 动态规划 1+🔴🀄️open in new window 🔗open in new window
1567乘积为正数的最长子数组长度贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
1569将子数组重新排序得到同一个二叉搜索树的方案数 并查集 二叉搜索树 7+🔴🀄️open in new window 🔗open in new window
1575统计所有可行路径记忆化搜索 数组 动态规划🔴🀄️open in new window 🔗open in new window
1578使绳子变成彩色的最短时间贪心 数组 字符串 1+🟠🀄️open in new window 🔗open in new window
1594矩阵的最大非负积数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
1595连通两组点的最小成本位运算 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
1611使整数变为 0 的最少操作次数位运算 记忆化搜索 动态规划🔴🀄️open in new window 🔗open in new window
1617统计子树中城市之间最大距离位运算 动态规划 2+🔴🀄️open in new window 🔗open in new window
1621大小为 K 的不重叠线段的数目数学 动态规划 组合数学🟠🀄️open in new window 🔗open in new window
1626无矛盾的最佳球队数组 动态规划 排序🟠🀄️open in new window 🔗open in new window
1638统计只差一个字符的子串数目哈希表 字符串 动态规划 1+🟠🀄️open in new window 🔗open in new window
1639通过给定词典构造目标字符串的方案数数组 字符串 动态规划🔴🀄️open in new window 🔗open in new window
1641统计字典序元音字符串的数目数学 动态规划 组合数学🟠🀄️open in new window 🔗open in new window
1643第 K 条最小指令数组 数学 动态规划 1+🔴🀄️open in new window 🔗open in new window
1653使字符串平衡的最少删除次数 字符串 动态规划🟠🀄️open in new window 🔗open in new window
1654到家的最少跳跃次数广度优先搜索 数组 动态规划🟠🀄️open in new window 🔗open in new window
1655分配重复整数位运算 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
1659最大化网格幸福感位运算 记忆化搜索 动态规划 1+🔴🀄️open in new window 🔗open in new window
1668最大重复子字符串字符串 动态规划 字符串匹配🟢🀄️open in new window 🔗open in new window
1671得到山形数组的最少删除次数[✓]贪心 数组 二分查找 1+🔴🀄️open in new window 🔗open in new window
1681最小不兼容性位运算 数组 动态规划 1+🔴🀄️open in new window 🔗open in new window
1682最长回文子序列 II 🔒字符串 动态规划🟠🀄️open in new window 🔗open in new window
1687从仓库到码头运输箱子线段树 队列 数组 4+🔴🀄️open in new window 🔗open in new window
1690石子游戏 VII数组 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
1691堆叠长方体的最大高度数组 动态规划 排序🔴🀄️open in new window 🔗open in new window
1692计算分配糖果的不同方式 🔒动态规划🔴🀄️open in new window 🔗open in new window
1696跳跃游戏 VI队列 数组 动态规划 2+🟠🀄️open in new window 🔗open in new window
1714数组中特殊等间距元素的和 🔒数组 动态规划🔴🀄️open in new window 🔗open in new window
1723完成所有工作的最短时间位运算 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
1728猫和老鼠 II 拓扑排序 记忆化搜索 5+🔴🀄️open in new window 🔗open in new window
1735生成乘积数组的方案数数组 数学 动态规划 2+🔴🀄️open in new window 🔗open in new window
1745分割回文串 IV字符串 动态规划🔴🀄️open in new window 🔗open in new window
1746经过一次操作后的最大子数组和 🔒数组 动态规划🟠🀄️open in new window 🔗open in new window
1749任意子数组和的绝对值的最大值数组 动态规划🟠🀄️open in new window 🔗open in new window
1751最多可以参加的会议数目 II数组 二分查找 动态规划 1+🔴🀄️open in new window 🔗open in new window
1755最接近目标值的子序列和位运算 数组 双指针 2+🔴🀄️open in new window 🔗open in new window
1770执行乘法运算的最大分数数组 动态规划🔴🀄️open in new window 🔗open in new window
1771由子序列构造的最长回文串的长度字符串 动态规划🔴🀄️open in new window 🔗open in new window
1774最接近目标价格的甜点成本数组 动态规划 回溯🟠🀄️open in new window 🔗open in new window
1786从第一个节点出发到最后一个节点的受限路径数 拓扑排序 动态规划 2+🟠🀄️open in new window 🔗open in new window
1787使所有区间的异或结果为零位运算 数组 动态规划🔴🀄️open in new window 🔗open in new window
1799N 次操作后的最大分数和位运算 数组 数学 4+🔴🀄️open in new window 🔗open in new window
1815得到新鲜甜甜圈的最多组数位运算 记忆化搜索 数组 2+🔴🀄️open in new window 🔗open in new window
1824最少侧跳次数贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
1857有向图中最大颜色值 拓扑排序 记忆化搜索 3+🔴🀄️open in new window 🔗open in new window
1866恰有 K 根木棍可以看到的排列数目数学 动态规划 组合数学🔴🀄️open in new window 🔗open in new window
1871跳跃游戏 VII字符串 动态规划 前缀和 1+🟠🀄️open in new window 🔗open in new window
1872石子游戏 VIII数组 数学 动态规划 2+🔴🀄️open in new window 🔗open in new window
1879两个数组最小的异或值之和位运算 数组 动态规划 1+🔴🀄️open in new window 🔗open in new window
1883准时抵达会议现场的最小跳过休息次数数组 动态规划🔴🀄️open in new window 🔗open in new window
1884鸡蛋掉落-两枚鸡蛋数学 动态规划🟠🀄️open in new window 🔗open in new window
1888使二进制字符串字符交替的最少反转次数贪心 字符串 动态规划 1+🟠🀄️open in new window 🔗open in new window
1896反转表达式值的最少操作次数 数学 字符串 1+🔴🀄️open in new window 🔗open in new window
1900最佳运动员的比拼回合记忆化搜索 动态规划🔴🀄️open in new window 🔗open in new window
1908Nim 游戏 II 🔒位运算 脑筋急转弯 数组 3+🟠🀄️open in new window 🔗open in new window
1911最大子序列交替和数组 动态规划🟠🀄️open in new window 🔗open in new window
1916统计为蚁群构筑房间的不同顺序 拓扑排序 3+🔴🀄️open in new window 🔗open in new window
1928规定时间内到达终点的最小花费 数组 动态规划🔴🀄️open in new window 🔗open in new window
1931用三种不同颜色为网格涂色动态规划🔴🀄️open in new window 🔗open in new window
1937扣分后的最大得分数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
1947最大兼容性评分和位运算 数组 动态规划 2+🟠🀄️open in new window 🔗open in new window
1955统计特殊子序列的数目数组 动态规划🔴🀄️open in new window 🔗open in new window
1959K 次调整数组大小浪费的最小总空间数组 动态规划🟠🀄️open in new window 🔗open in new window
1976到达目的地的方案数 拓扑排序 动态规划 1+🟠🀄️open in new window 🔗open in new window
1977划分数字的方案数字符串 动态规划 后缀数组🔴🀄️open in new window 🔗open in new window
1981最小化目标值与所选元素的差数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
1986完成任务的最少工作时间段位运算 数组 动态规划 2+🟠🀄️open in new window 🔗open in new window
1987不同的好子序列数目字符串 动态规划🔴🀄️open in new window 🔗open in new window
1994好子集的数目位运算 数组 数学 2+🔴🀄️open in new window 🔗open in new window
1997访问完所有房间的第一天数组 动态规划🟠🀄️open in new window 🔗open in new window
2002两个回文子序列长度的最大乘积位运算 字符串 动态规划 2+🟠🀄️open in new window 🔗open in new window
2003每棵子树内缺失的最小基因值 深度优先搜索 并查集 1+🔴🀄️open in new window 🔗open in new window
2005斐波那契树的移除子树游戏 🔒 数学 动态规划 2+🔴🀄️open in new window 🔗open in new window
2008出租车的最大盈利数组 哈希表 二分查找 2+🟠🀄️open in new window 🔗open in new window
2019解出数学表达式的学生分数 记忆化搜索 数组 3+🔴🀄️open in new window 🔗open in new window
2035将数组分成两个数组并最小化数组和的差位运算 数组 双指针 4+🔴🀄️open in new window 🔗open in new window
2036最大交替子数组和 🔒数组 动态规划🟠🀄️open in new window 🔗open in new window
2050并行课程 III 拓扑排序 数组 1+🔴🀄️open in new window 🔗open in new window
2052将句子分隔成行的最低成本 🔒数组 动态规划🟠🀄️open in new window 🔗open in new window
2054两个最好的不重叠活动数组 二分查找 动态规划 2+🟠🀄️open in new window 🔗open in new window
2060同源字符串检测字符串 动态规划🔴🀄️open in new window 🔗open in new window
2063所有子字符串中的元音数学 字符串 动态规划 1+🟠🀄️open in new window 🔗open in new window
2086喂食仓鼠的最小食物桶数贪心 字符串 动态规划🟠🀄️open in new window 🔗open in new window
2088统计农场中肥沃金字塔的数目数组 动态规划 矩阵🔴🀄️open in new window 🔗open in new window
2100适合野炊的日子数组 动态规划 前缀和🟠🀄️open in new window 🔗open in new window
2110股票平滑下跌阶段的数目数组 数学 动态规划🟠🀄️open in new window 🔗open in new window
2140解决智力问题数组 动态规划🟠🀄️open in new window 🔗open in new window
2143在两个数组的区间中选取数字 🔒数组 动态规划🔴🀄️open in new window 🔗open in new window
2147分隔长廊的方案数数学 字符串 动态规划🔴🀄️open in new window 🔗open in new window
2152穿过所有点的所需最少直线数量 🔒位运算 几何 数组 5+🟠🀄️open in new window 🔗open in new window
2163删除元素后和的最小差值数组 动态规划 堆(优先队列)🔴🀄️open in new window 🔗open in new window
2167移除所有载有违禁货物车厢所需的最少时间字符串 动态规划🔴🀄️open in new window 🔗open in new window
2172数组的最大与和位运算 数组 动态规划 1+🔴🀄️open in new window 🔗open in new window
2184建造坚实的砖墙的方法数 🔒位运算 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
2188完成比赛的最少时间数组 动态规划🔴🀄️open in new window 🔗open in new window
2189建造纸牌屋的方法数 🔒数学 动态规划🟠🀄️open in new window 🔗open in new window
2209用地毯覆盖后的最少白色砖块字符串 动态规划 前缀和🔴🀄️open in new window 🔗open in new window
2218从栈中取出 K 个硬币的最大面值和数组 动态规划 前缀和🔴🀄️open in new window 🔗open in new window
2222选择建筑的方案数字符串 动态规划 前缀和🟠🀄️open in new window 🔗open in new window
2247K 条高速公路的最大旅行费用 🔒位运算 动态规划 1+🔴🀄️open in new window 🔗open in new window
2262字符串的总引力[✓]哈希表 字符串 动态规划🔴🀄️open in new window 🔗open in new window
2263数组变为有序的最小操作次数 🔒贪心 动态规划🔴🀄️open in new window 🔗open in new window
2266统计打字方案数哈希表 数学 字符串 1+🟠🀄️open in new window 🔗open in new window
2267检查是否有合法括号字符串路径数组 动态规划 矩阵🔴🀄️open in new window 🔗open in new window
2272最大波动的子字符串数组 动态规划🔴🀄️open in new window 🔗open in new window
2291最大股票收益 🔒数组 动态规划🟠🀄️open in new window 🔗open in new window
2297跳跃游戏 VIII 🔒 数组 3+🟠🀄️open in new window 🔗open in new window
2304网格中的最小路径代价数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
2305公平分发饼干位运算 数组 动态规划 2+🟠🀄️open in new window 🔗open in new window
2310个位数字为 K 的整数之和贪心 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
2311小于等于 K 的最长二进制子序列贪心 记忆化搜索 字符串 1+🟠🀄️open in new window 🔗open in new window
2312卖木头块记忆化搜索 数组 动态规划🔴🀄️open in new window 🔗open in new window
2313二叉树中得到结果所需的最少翻转次数 🔒 深度优先搜索 动态规划 1+🔴🀄️open in new window 🔗open in new window
2318不同骰子序列的数目记忆化搜索 动态规划🔴🀄️open in new window 🔗open in new window
2320统计放置房子的方式数动态规划🟠🀄️open in new window 🔗open in new window
2321拼接数组的最大分数数组 动态规划🔴🀄️open in new window 🔗open in new window
2327知道秘密的人数队列 动态规划 模拟🟠🀄️open in new window 🔗open in new window
2328网格图中递增路径的数目深度优先搜索 广度优先搜索 5+🔴🀄️open in new window 🔗open in new window
2338统计理想数组的数目数学 动态规划 组合数学 1+🔴🀄️open in new window 🔗open in new window
2355你能拿走的最大图书数量 🔒 数组 动态规划 1+🔴🀄️open in new window 🔗open in new window
2361乘坐火车路线的最少费用 🔒数组 动态规划🔴🀄️open in new window 🔗open in new window
2369检查数组是否存在有效划分数组 动态规划🟠🀄️open in new window 🔗open in new window
2370最长理想子序列哈希表 字符串 动态规划🟠🀄️open in new window 🔗open in new window
2376统计特殊整数数学 动态规划🔴🀄️open in new window 🔗open in new window
2378选择边来最大化树的得分 🔒 深度优先搜索 动态规划🟠🀄️open in new window 🔗open in new window
2380二进制字符串重新安排顺序需要的时间字符串 动态规划 模拟🟠🀄️open in new window 🔗open in new window
2393严格递增的子数组个数 🔒数组 数学 动态规划🟠🀄️open in new window 🔗open in new window
2400恰好移动 k 步到达某一位置的方法数目数学 动态规划 组合数学🟠🀄️open in new window 🔗open in new window
2403杀死所有怪物的最短时间 🔒位运算 数组 动态规划 1+🔴🀄️open in new window 🔗open in new window
2407最长递增子序列 II树状数组 线段树 队列 4+🔴🀄️open in new window 🔗open in new window
2420找到所有好下标数组 动态规划 前缀和🟠🀄️open in new window 🔗open in new window
2430对字母串可执行的最大删除数字符串 动态规划 字符串匹配 2+🔴🀄️open in new window 🔗open in new window
2431最大限度地提高购买水果的口味 🔒数组 动态规划🟠🀄️open in new window 🔗open in new window
2435矩阵中和能被 K 整除的路径数组 动态规划 矩阵🔴🀄️open in new window 🔗open in new window
2436使子数组最大公约数大于一的最小分割数 🔒贪心 数组 数学 2+🟠🀄️open in new window 🔗open in new window
2439最小化数组中的最大值贪心 数组 二分查找 2+🟠🀄️open in new window 🔗open in new window
2463最小移动总距离[✓]数组 动态规划 排序🔴🀄️open in new window 🔗open in new window
2464有效分割中的最少子数组数目 🔒数组 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
2466统计构造好字符串的方案数动态规划🟠🀄️open in new window 🔗open in new window
2472不重叠回文子字符串的最大数目贪心 双指针 字符串 1+🔴🀄️open in new window 🔗open in new window
2478完美分割的方案数字符串 动态规划🔴🀄️open in new window 🔗open in new window
2484统计回文子序列数目字符串 动态规划🔴🀄️open in new window 🔗open in new window
2495乘积为偶数的子数组数 🔒数组 数学 动态规划🟠🀄️open in new window 🔗open in new window
2501数组中最长的方波[✓]数组 哈希表 二分查找 2+🟠🀄️open in new window 🔗open in new window
2510检查是否有路径经过相同数量的 0 和 1 🔒数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
2518好分区的数目数组 动态规划🔴🀄️open in new window 🔗open in new window
2522将字符串分割成值不超过 K 的子字符串贪心 字符串 动态规划🟠🀄️open in new window 🔗open in new window
2533好二进制字符串的数量 🔒动态规划🟠🀄️open in new window 🔗open in new window
2538最大价值和与最小价值和的差值 深度优先搜索 数组 1+🔴🀄️open in new window 🔗open in new window
2547拆分数组的最小代价数组 哈希表 动态规划 1+🔴🀄️open in new window 🔗open in new window
2552统计上升四元组树状数组 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
2556二进制矩阵中翻转最多一次使路径不连通深度优先搜索 广度优先搜索 数组 2+🟠🀄️open in new window 🔗open in new window
2571将整数减少到零需要的最少操作数贪心 位运算 动态规划🟠🀄️open in new window 🔗open in new window
2572无平方子集计数位运算 数组 数学 2+🟠🀄️open in new window 🔗open in new window
2573找出对应 LCP 矩阵的字符串贪心 并查集 数组 3+🔴🀄️open in new window 🔗open in new window
2581统计可能的树根数目 深度优先搜索 数组 2+🔴🀄️open in new window 🔗open in new window
2585获得分数的方法数数组 动态规划🔴🀄️open in new window 🔗open in new window
2597美丽子集的数目数组 哈希表 数学 4+🟠🀄️open in new window 🔗open in new window
2606找到最大开销的子字符串数组 哈希表 字符串 1+🟠🀄️open in new window 🔗open in new window
2617网格图中最少访问的格子数 广度优先搜索 并查集 5+🔴🀄️open in new window 🔗open in new window
2638统计 K-Free 子集的总数 🔒数组 数学 动态规划 2+🟠🀄️open in new window 🔗open in new window
2645构造有效字符串的最少插入数 贪心 字符串 1+🟠🀄️open in new window 🔗open in new window
2646最小化旅行的价格总和 深度优先搜索 2+🔴🀄️open in new window 🔗open in new window
2673使二叉树所有路径值相等的最小代价贪心 数组 2+🟠🀄️open in new window 🔗open in new window
2681英雄的力量数组 数学 动态规划 2+🔴🀄️open in new window 🔗open in new window
2684矩阵中移动的最大次数[✓]数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
2707字符串中的额外字符字典树 数组 哈希表 2+🟠🀄️open in new window 🔗open in new window
2708一个小组的最大实力值贪心 位运算 数组 4+🟠🀄️open in new window 🔗open in new window
2712使所有字符相等的最小成本贪心 字符串 动态规划🟠🀄️open in new window 🔗open in new window
2713矩阵中严格递增的单元格数记忆化搜索 数组 哈希表 5+🔴🀄️open in new window 🔗open in new window
2719统计整数数目数学 字符串 动态规划🔴🀄️open in new window 🔗open in new window
2741特别的排列位运算 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
2742给墙壁刷油漆数组 动态规划🔴🀄️open in new window 🔗open in new window
2745构造最长的新字符串贪心 脑筋急转弯 数学 1+🟠🀄️open in new window 🔗open in new window
2746字符串连接删减字母数组 字符串 动态规划🟠🀄️open in new window 🔗open in new window
2750将数组划分成若干好子数组的方式数组 数学 动态规划🟠🀄️open in new window 🔗open in new window
2767将字符串分割为最少的美丽子字符串哈希表 字符串 动态规划 1+🟠🀄️open in new window 🔗open in new window
2770达到末尾下标所需的最大跳跃次数数组 动态规划🟠🀄️open in new window 🔗open in new window
2771构造最长非递减子数组数组 动态规划🟠🀄️open in new window 🔗open in new window
2786访问数组中的位置使分数最大数组 动态规划🟠🀄️open in new window 🔗open in new window
2787将一个数字表示成幂的和的方案数动态规划🟠🀄️open in new window 🔗open in new window
2791树中可以形成回文的路径数位运算 深度优先搜索 2+🔴🀄️open in new window 🔗open in new window
2801统计范围内的步进数字数目字符串 动态规划🔴🀄️open in new window 🔗open in new window
2809使数组和小于等于 x 的最少时间数组 动态规划 排序🔴🀄️open in new window 🔗open in new window
2811判断是否能拆分数组贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
2826将三个组排序数组 二分查找 动态规划🟠🀄️open in new window 🔗open in new window
2827范围中美丽整数的数目数学 动态规划🔴🀄️open in new window 🔗open in new window
2830销售利润最大化数组 哈希表 二分查找 2+🟠🀄️open in new window 🔗open in new window
2836在传球游戏中最大化函数值位运算 数组 动态规划🔴🀄️open in new window 🔗open in new window
2850将石头分散到网格图的最少移动次数广度优先搜索 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
2851字符串转换数学 字符串 动态规划 1+🔴🀄️open in new window 🔗open in new window
2858可以到达每一个节点的最少边反转次数深度优先搜索 广度优先搜索 1+🔴🀄️open in new window 🔗open in new window
2867统计树中的合法路径数目 深度优先搜索 数学 2+🔴🀄️open in new window 🔗open in new window
2876有向图访问计数 记忆化搜索 动态规划🔴🀄️open in new window 🔗open in new window
2892将相邻元素相乘后得到最小化数组 🔒贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
2896执行操作使两个字符串相等字符串 动态规划🟠🀄️open in new window 🔗open in new window
2900最长相邻不相等子序列 I贪心 数组 字符串 1+🟢🀄️open in new window 🔗open in new window
2901最长相邻不相等子序列 II数组 字符串 动态规划🟠🀄️open in new window 🔗open in new window
2902和带限制的子多重集合的数目数组 哈希表 动态规划 1+🔴🀄️open in new window 🔗open in new window
2911得到 K 个半回文串的最少修改次数双指针 字符串 动态规划🔴🀄️open in new window 🔗open in new window
2912在网格上移动到目的地的方法数 🔒数学 动态规划 组合数学🔴🀄️open in new window 🔗open in new window
2915和为目标值的最长子序列的长度数组 动态规划🟠🀄️open in new window 🔗open in new window
2916子数组不同元素数目的平方和 II树状数组 线段树 数组 1+🔴🀄️open in new window 🔗open in new window
2919使数组变美的最小增量运算数数组 动态规划🟠🀄️open in new window 🔗open in new window
2920收集所有金币可获得的最大积分位运算 深度优先搜索 2+🔴🀄️open in new window 🔗open in new window
2925在树上执行操作以后得到的最大分数 深度优先搜索 动态规划🟠🀄️open in new window 🔗open in new window
2926平衡子序列的最大和树状数组 线段树 数组 2+🔴🀄️open in new window 🔗open in new window
2930重新排列后包含指定子字符串的字符串数目数学 动态规划 组合数学🟠🀄️open in new window 🔗open in new window
2944购买水果需要的最少金币数队列 数组 动态规划 2+🟠🀄️open in new window 🔗open in new window
2945找到最大非递减数组的长度 队列 数组 4+🔴🀄️open in new window 🔗open in new window
2957消除相邻近似相等字符贪心 字符串 动态规划🟠🀄️open in new window 🔗open in new window
2969购买水果需要的最少金币数 II 🔒队列 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
2973树中每个节点放置的金币数目 深度优先搜索 动态规划 2+🔴🀄️open in new window 🔗open in new window
2977转换字符串的最小成本 II 字典树 数组 3+🔴🀄️open in new window 🔗open in new window
2979最贵的无法购买的商品 🔒数学 动态规划 数论🟠🀄️open in new window 🔗open in new window
2992自整除排列的数量 🔒位运算 数组 动态规划 2+🟠🀄️open in new window 🔗open in new window
2998使 X 和 Y 相等的最少操作次数广度优先搜索 记忆化搜索 动态规划🟠🀄️open in new window 🔗open in new window
2999统计强大整数的数目数学 字符串 动态规划🔴🀄️open in new window 🔗open in new window
3003执行操作后的最大分割数量位运算 字符串 动态规划 1+🔴🀄️open in new window 🔗open in new window
3004相同颜色的最大子树 🔒 深度优先搜索 数组 1+🟠🀄️open in new window 🔗open in new window
3007价值和小于等于 K 的最大数字位运算 二分查找 动态规划🟠🀄️open in new window 🔗open in new window
3018可处理的最大删除操作数 I 🔒数组 动态规划🔴🀄️open in new window 🔗open in new window
3032统计各位数字都不同的数字个数 II 🔒哈希表 数学 动态规划🟢🀄️open in new window 🔗open in new window
3040相同分数的最大操作数目 II记忆化搜索 数组 动态规划🟠🀄️open in new window 🔗open in new window
3041修改数组后最大化数组中的连续元素数目数组 动态规划 排序🔴🀄️open in new window 🔗open in new window
3068最大节点价值之和贪心 位运算 3+🔴🀄️open in new window 🔗open in new window
3077K 个不相交子数组的最大能量值数组 动态规划 前缀和🔴🀄️open in new window 🔗open in new window
3082求出所有子序列的能量和数组 动态规划🔴🀄️open in new window 🔗open in new window
3098求出所有子序列的能量和数组 动态规划 排序🔴🀄️open in new window 🔗open in new window
3117划分数组得到最小的值之和位运算 线段树 队列 3+🔴🀄️open in new window 🔗open in new window
3122使矩阵满足条件的最少操作次数数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
3129找出所有稳定的二进制数组 I动态规划 前缀和🟠🀄️open in new window 🔗open in new window
3130找出所有稳定的二进制数组 II动态规划 前缀和🔴🀄️open in new window 🔗open in new window
3135通过添加或删除结尾字符来同化字符串 🔒字符串 二分查找 动态规划 2+🟠🀄️open in new window 🔗open in new window
3144分割字符频率相等的最少子字符串哈希表 字符串 动态规划 1+🟠🀄️open in new window 🔗open in new window
3148矩阵中的最大得分数组 动态规划 矩阵🟠🀄️open in new window 🔗open in new window
3149找出分数最低的排列位运算 数组 动态规划 1+🔴🀄️open in new window 🔗open in new window
3154到达第 K 级台阶的方案数位运算 记忆化搜索 数学 2+🔴🀄️open in new window 🔗open in new window
3165不包含相邻元素的子序列的最大和线段树 数组 分治 1+🔴🀄️open in new window 🔗open in new window
3176求出最长好子序列 I数组 哈希表 动态规划🟠🀄️open in new window 🔗open in new window
3177求出最长好子序列 II数组 哈希表 动态规划🔴🀄️open in new window 🔗open in new window
3180执行操作可获得的最大总奖励 I数组 动态规划🟠🀄️open in new window 🔗open in new window
3181执行操作可获得的最大总奖励 II位运算 数组 动态规划🔴🀄️open in new window 🔗open in new window
3183达到总和的方法数量 🔒数组 动态规划🟠🀄️open in new window 🔗open in new window
3186施咒的最大总伤害数组 哈希表 双指针 4+🟠🀄️open in new window 🔗open in new window
3192使二进制数组全部等于 1 的最少操作次数 II贪心 数组 动态规划🟠🀄️open in new window 🔗open in new window
3193统计逆序对的数目数组 动态规划🔴🀄️open in new window 🔗open in new window
3196最大化子数组的总成本数组 动态规划🟠🀄️open in new window 🔗open in new window
3201找出有效子序列的最大长度 I数组 动态规划🟠🀄️open in new window 🔗open in new window
3202找出有效子序列的最大长度 II数组 动态规划🟠🀄️open in new window 🔗open in new window
3205最大数组跳跃得分 I 🔒 贪心 数组 2+🟠🀄️open in new window 🔗open in new window
3213最小代价构造字符串数组 字符串 动态规划 1+🔴🀄️open in new window 🔗open in new window
3218切蛋糕的最小总开销 I贪心 数组 动态规划 1+🟠🀄️open in new window 🔗open in new window
3225网格图操作后的最大分数数组 动态规划 矩阵 1+🔴🀄️open in new window 🔗open in new window
3229使数组等于目标数组所需的最少操作次数 贪心 数组 2+🔴🀄️open in new window 🔗open in new window
3241标记所有节点需要的时间 深度优先搜索 1+🔴🀄️open in new window 🔗open in new window
3247奇数和子序列的数量 🔒数组 数学 动态规划 1+🟠🀄️open in new window 🔗open in new window
3250单调数组对的数目 I数组 数学 动态规划 2+🔴🀄️open in new window 🔗open in new window
3251单调数组对的数目 II数组 数学 动态规划 2+🔴🀄️open in new window 🔗open in new window
3256放三个车的价值之和最大 I数组 动态规划 枚举 1+🔴🀄️open in new window 🔗open in new window
3257放三个车的价值之和最大 II数组 动态规划 枚举 1+🔴🀄️open in new window 🔗open in new window
3259超级饮料的最大强化能量数组 动态规划🟠🀄️open in new window 🔗open in new window
3260找出最大的 N 位 K 回文数贪心 数学 字符串 2+🔴🀄️open in new window 🔗open in new window
3269构建两个递增数组 🔒数组 动态规划🔴🀄️open in new window 🔗open in new window
3276选择矩阵中单元格的最大得分位运算 数组 动态规划 2+🔴🀄️open in new window 🔗open in new window
3277查询子数组最大异或值数组 动态规划🔴🀄️open in new window 🔗open in new window
3284连续子数组的和 🔒数组 双指针 动态规划🟠🀄️open in new window 🔗open in new window
3287求出数组中最大序列值位运算 数组 动态规划🔴🀄️open in new window 🔗open in new window
3290最高乘法得分数组 动态规划🟠🀄️open in new window 🔗open in new window
3291形成目标字符串需要的最少字符串数 I字典树 线段树 数组 6+🟠🀄️open in new window 🔗open in new window
3292形成目标字符串需要的最少字符串数 II线段树 数组 字符串 5+🔴🀄️open in new window 🔗open in new window
3299连续子序列的和 🔒数组 哈希表 动态规划🔴🀄️open in new window 🔗open in new window
3302字典序最小的合法序列贪心 双指针 字符串 1+🟠🀄️open in new window 🔗open in new window
3316从原字符串里进行删除操作的最多次数数组 哈希表 双指针 2+🟠🀄️open in new window 🔗open in new window
3317安排活动的方案数数学 动态规划 组合数学🔴🀄️open in new window 🔗open in new window
3320统计能获胜的出招序列数字符串 动态规划🔴🀄️open in new window 🔗open in new window
LCP 04覆盖位运算 数组 2+🔴🀄️open in new window
LCP 07传递信息深度优先搜索 广度优先搜索 1+🟢🀄️open in new window
LCP 09最小跳跃次数广度优先搜索 线段树 数组 1+🔴🀄️open in new window
LCP 10二叉树任务调度 深度优先搜索 动态规划 1+🔴🀄️open in new window
LCP 13寻宝位运算 广度优先搜索 数组 3+🔴🀄️open in new window
LCP 14切分数组数组 数学 动态规划 1+🔴🀄️open in new window
LCP 19秋叶收藏集字符串 动态规划🟠🀄️open in new window
LCP 20快速公交记忆化搜索 数组 动态规划🔴🀄️open in new window
LCP 25古董键盘数学 动态规划 组合数学🔴🀄️open in new window
LCP 26导航装置 动态规划 二叉树🔴🀄️open in new window
LCP 31变换的迷宫深度优先搜索 广度优先搜索 数组 2+🔴🀄️open in new window
LCP 34二叉树染色 动态规划 二叉树🟠🀄️open in new window
LCP 36最多牌组数数组 动态规划 排序🔴🀄️open in new window
LCP 38守卫城堡数组 动态规划 矩阵🔴🀄️open in new window
LCP 43十字路口的交通数组 字符串 动态规划🔴🀄️open in new window
LCP 45自行车炫技赛场深度优先搜索 广度优先搜索 记忆化搜索 3+🟠🀄️open in new window
LCP 47入场安检数组 动态规划🔴🀄️open in new window
LCP 53守护太空城位运算 数组 动态规划 1+🔴🀄️open in new window
LCP 57打地鼠数组 动态规划 矩阵 1+🔴🀄️open in new window
LCP 59搭桥过河数组 动态规划🔴🀄️open in new window
LCP 60力扣泡泡龙 动态规划 二叉树🔴🀄️open in new window
LCP 63弹珠游戏深度优先搜索 广度优先搜索 5+🟠🀄️open in new window
LCP 64二叉树灯饰 深度优先搜索 动态规划 1+🟠🀄️open in new window
LCP 65舒适的湿度数组 动态规划🔴🀄️open in new window
LCP 69Hello LeetCode!位运算 数组 字符串 2+🔴🀄️open in new window
LCS 01下载插件贪心 数学 动态规划🟢🀄️open in new window
剑指 Offer 10斐波那契数列[✓]记忆化搜索 数学 动态规划🟢🀄️open in new window
剑指 Offer 10-II青蛙跳台阶问题[✓]记忆化搜索 数学 动态规划🟢🀄️open in new window
剑指 Offer 13机器人的运动范围[✓]深度优先搜索 广度优先搜索 动态规划🟠🀄️open in new window
剑指 Offer 14剪绳子[✓]数学 动态规划🟠🀄️open in new window
剑指 Offer 14-II剪绳子 II[✓]数学 动态规划🟠🀄️open in new window
剑指 Offer 19正则表达式匹配[✓]递归 字符串 动态规划🔴🀄️open in new window
剑指 Offer 42连续子数组的最大和[✓]数组 分治 动态规划🟢🀄️open in new window
剑指 Offer 431~n 整数中 1 出现的次数[✓]递归 数学 动态规划🔴🀄️open in new window
剑指 Offer 46把数字翻译成字符串[✓]字符串 动态规划🟠🀄️open in new window
剑指 Offer 47礼物的最大价值[✓]数组 动态规划 矩阵🟠🀄️open in new window
剑指 Offer 49丑数[✓]哈希表 数学 动态规划 1+🟠🀄️open in new window
剑指 Offer 60n个骰子的点数[✓]数学 动态规划 概率与统计🟠🀄️open in new window
剑指 Offer 63股票的最大利润[✓]数组 动态规划🟠🀄️open in new window
剑指 Offer II 100三角形中最小路径之和[✓]数组 动态规划🟠🀄️open in new window
剑指 Offer II 102加减的目标值[✓]数组 动态规划 回溯🟠🀄️open in new window
剑指 Offer II 103最少的硬币数目[✓]广度优先搜索 数组 动态规划🟠🀄️open in new window
剑指 Offer II 104排列的数目数组 动态规划🟠🀄️open in new window
剑指 Offer II 107矩阵中的距离广度优先搜索 数组 动态规划 1+🟠🀄️open in new window
剑指 Offer II 112最长递增路径深度优先搜索 广度优先搜索 5+🔴🀄️open in new window
剑指 Offer II 20回文子字符串的个数字符串 动态规划🟠🀄️open in new window
剑指 Offer II 3前 n 个数字二进制中 1 的个数位运算 动态规划🟢🀄️open in new window
剑指 Offer II 40矩阵中最大的矩形[✓] 数组 动态规划 2+🔴🀄️open in new window
剑指 Offer II 51节点之和最大的路径[✓] 深度优先搜索 动态规划 1+🔴🀄️open in new window
剑指 Offer II 85生成匹配的括号[✓]字符串 动态规划 回溯🟠🀄️open in new window
剑指 Offer II 88爬楼梯的最少成本数组 动态规划🟢🀄️open in new window
剑指 Offer II 89房屋偷盗[✓]数组 动态规划🟠🀄️open in new window
剑指 Offer II 90环形房屋偷盗数组 动态规划🟠🀄️open in new window
剑指 Offer II 91粉刷房子数组 动态规划🟠🀄️open in new window
剑指 Offer II 92翻转字符字符串 动态规划🟠🀄️open in new window
剑指 Offer II 93最长斐波那契数列数组 哈希表 动态规划🟠🀄️open in new window
剑指 Offer II 94最少回文分割字符串 动态规划🔴🀄️open in new window
剑指 Offer II 95最长公共子序列[✓]字符串 动态规划🟠🀄️open in new window
剑指 Offer II 96字符串交织[✓]字符串 动态规划🟠🀄️open in new window
剑指 Offer II 97子序列的数目字符串 动态规划🔴🀄️open in new window
剑指 Offer II 98路径的数目[✓]数学 动态规划 组合数学🟠🀄️open in new window
剑指 Offer II 99最小路径之和[✓]数组 动态规划 矩阵🟠🀄️open in new window
面试题 05.03翻转数位位运算 动态规划🟢🀄️open in new window
面试题 08.01三步问题记忆化搜索 数学 动态规划🟢🀄️open in new window
面试题 08.02迷路的机器人数组 动态规划 回溯 1+🟠🀄️open in new window
面试题 08.09括号字符串 动态规划 回溯🟠🀄️open in new window
面试题 08.11硬币数组 数学 动态规划🟠🀄️open in new window
面试题 08.13堆箱子数组 动态规划 排序🔴🀄️open in new window
面试题 08.14布尔运算记忆化搜索 字符串 动态规划🟠🀄️open in new window
面试题 16.17连续数列数组 分治 动态规划🟢🀄️open in new window
面试题 17.062出现的次数递归 数学 动态规划🔴🀄️open in new window
面试题 17.08马戏团人塔数组 二分查找 动态规划 1+🟠🀄️open in new window
面试题 17.09第 k 个数哈希表 数学 动态规划 1+🟠🀄️open in new window
面试题 17.13恢复空格字典树 数组 哈希表 4+🟠🀄️open in new window
面试题 17.16按摩师数组 动态规划🟢🀄️open in new window
面试题 17.21直方图的水量 数组 双指针 2+🔴🀄️open in new window
面试题 17.23最大黑方阵数组 动态规划 矩阵🟠🀄️open in new window
面试题 17.24最大子矩阵数组 动态规划 矩阵 1+🔴🀄️open in new window