dp
共 63 篇文章
leetcode139. 单词拆分
暂无摘要...
leetcode198. 打家劫舍
暂无摘要...
leetcode174. 地下城游戏
分析由于从骑士开始走的话需要提前知道路径和起始健康点数,所以可以从公主去找骑士,只需要朝两个方向中所需的最小健康点方向即可。class Solution {public: int calculateMinimumHP(vector<vector<int>>& d
leetcode115. 不同的子序列
暂无摘要...
leetcode132. 分割回文串 II
暂无摘要...
leetcode123. 买卖股票的最佳时机 III
暂无摘要...
leetcode122. 买卖股票的最佳时机 II
暂无摘要...
leetcode120. 三角形最小路径和
class Solution {public: int minimumTotal(vector<vector<int>>& triangle) { vector<vector<int>>f= triangle;
leetcode119. 杨辉三角 II
暂无摘要...
leetcode118. 杨辉三角
暂无摘要...