2020年3月20日

摘要: 动态规划三部曲 1)定义数组元素含义 2)寻找递推关系 dp 3)找初始值 参考博客:https://zhuanlan.zhihu.com/p/91582909 解题步骤: 1、确定需要保存在dp表中的状态。(关键:确定影响状态的维度和每个元素代表的含义) 一维:dp[n]=f(dp[n-1]) 二 阅读全文
posted @ 2020-03-20 21:49 行者常至,为者长成 阅读(143) 评论(0) 推荐(0)
 
摘要: 参考博客: https://blog.csdn.net/niyaozuozuihao/article/details/91802994 1、运行命令run:简记为 r ,其作用是运行程序,当遇到断点后,程序会在断点处停止运行,等待用户输入下一步的命令。continue (简写c ):继续执行,到下一 阅读全文
posted @ 2020-03-20 21:48 行者常至,为者长成 阅读(769) 评论(0) 推荐(0)
 
摘要: 554. 砖墙https://leetcode-cn.com/problems/brick-wall/939. 最小面积矩形https://leetcode-cn.com/problems/minimum-area-rectangle/ 73. 矩阵置零https://leetcode-cn.com 阅读全文
posted @ 2020-03-20 21:46 行者常至,为者长成 阅读(107) 评论(0) 推荐(0)