摘要:
链接:https://leetcode.cn/problems/house-robber/ 方法1 学会了动态规划思路后,我独立想出来的一个方法,缺点是代码不够优雅(dp和nums的序号有错位)。 我的代码 int max(int a,int b){ return a>b?a:b; } int ro 阅读全文
posted @ 2022-07-27 04:03
孤舟浮岸
阅读(85)
评论(0)
推荐(0)
摘要:
链接:https://leetcode.cn/problems/maximum-subarray/ 之前题解的博客:https://tsuish.gitee.io/p/7a78 注:之后把这篇博客整理到hexo 我的代码 int max(int a,int b){ return a>b?a:b; } 阅读全文
posted @ 2022-07-27 03:11
孤舟浮岸
阅读(34)
评论(0)
推荐(0)
浙公网安备 33010602011771号