动态规划入门:从记忆化搜索到递推【基础算法精讲 17】

23.7万
273
2023-02-09 21:36:24
正在缓冲...
5452
3285
6075
639
推荐学习路线:二叉树递归 -> 回溯 -> 记忆化搜索 -> 递推 Python/Java/C++/Go/JS/Rust 代码: 198. 打家劫舍 https://leetcode.cn/problems/house-robber/solution/ru-he-xiang-chu-zhuang-tai-ding-yi-he-zh-1wt1/ 课后作业: 70. 爬楼梯 https://leetcode.cn/problems/climbing-stairs/ 746 https://leetcode.cn/problems/min-cost-climbing-stairs/ 213. 打家劫舍 II https://leetcode.cn/problems/house-robber-ii/ 740. 删除并获得点数 https://leetcode.cn/problems/delete-and-earn/ 2466. 统计构造好字符串的方案数 https://leetcode.cn/problems/count-ways-to-build-good-strings/ 377. 组合总和 Ⅳ https://leetcode.cn/problems/combination-sum-iv/ 2266. 统计打字方案数 https://leetcode.cn/problems/count-number-of-texts/ 64. 最小路径和 https://leetcode.cn/problems/minimum-path-sum/ 课后作业题解: 70. 爬楼梯 https://leetcode.cn/problems/climbing-stairs/solution/jiao-ni-yi-bu-bu-si-kao-dong-tai-gui-hua-7zm1/ 746 https://leetcode.cn/problems/min-cost-climbing-stairs/solution/jiao-ni-yi-bu-bu-si-kao-dong-tai-gui-hua-j99e/ 215. 打家劫舍 II https://leetcode.cn/problems/house-robber-ii/solution/jian-ji-xie-fa-zhi-jie-diao-yong-198-ti-qhvri/ 740. 删除并获得点数 https://leetcode.cn/problems/delete-and-earn/solution/zhi-yu-da-jia-jie-she-pythonjavaccgojsru-e5gg/ 2466. 统计构造好字符串的方案数 https://leetcode.cn/problems/count-ways-to-build-good-strings/solution/by-endlesscheng-4j22/ 377. 组合总和 Ⅳ https://leetcode.cn/problems/combination-sum-iv/solution/ben-zhi-shi-pa-lou-ti-cong-ji-yi-hua-sou-y52j/ 2266. 统计打字方案数 https://leetcode.cn/problems/count-number-of-texts/solution/by-endlesscheng-gj8f/ 64. 最小路径和 https://leetcode.cn/problems/minimum-path-sum/solution/jiao-ni-yi-bu-bu-si-kao-dpcong-ji-yi-hua-zfb2/ DP 题单: https://leetcode.cn/circle/discuss/tXLS3i/
带你理解算法的本质。题单:leetcode.cn/circle/discuss/RvFUtj
自动连播
362.8万播放
简介
01 相向双指针 两数之和 三数之和 167 15
13:19
02 相向双指针 接雨水 前后缀分解 11 42
12:35
03 滑动窗口 最短 最长 方案数 209 713 3
14:57
04 二分查找 红蓝染色法 34
12:36
05 二分查找 搜索旋转排序数组 162 153 33
06:17
06 反转链表 K个一组翻转 206 92 25
07:13
07 快慢指针 环形链表 重排链表 876 141 142 143
07:35
08 前后指针 链表删除 链表去重 237 19 83 82
06:48
09 二叉树 递归 数学归纳法 栈 104
07:43
10 二叉树 相同 对称 平衡 右视图 100 101 110 199
07:16
11 二叉搜索树 前序 中序 后序 98
08:34
12 二叉树 最近公共祖先 236 235
06:19
13 二叉树 层序遍历 BFS 队列 102 103 513
09:14
14 回溯 子集型 分割回文串 17 78 131
12:22
15 回溯 组合型 剪枝 77 216 22
14:37
16 回溯 排列型 N皇后 46 51
18:16
17 动态规划 从记忆化搜索到递推 打家劫舍 198
08:09
18 0-1背包 完全背包 目标和 零钱兑换 494 322
15:57
19 线性DP 最长公共子序列 编辑距离 1143 72
10:50
20 线性DP 最长递增子序列 300
12:09
21 状态机DP 买卖股票系列 122 309 188
14:48
22 区间DP 最长回文子序列 最优三角剖分 516 1039
09:33
23 树形DP① 树的直径 543 124 2246
10:18
24 树形DP② 打家劫舍III 树上最大独立集 337
06:24
25 树形DP③ 监控二叉树 树上最小支配集 968
12:22
26 单调栈 每日温度 接雨水 739 42
12:28
27 单调队列 滑动窗口最大值 239
07:11
客服
顶部
赛事库 课堂 2021拜年纪