会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
荧惑微光
博客园
首页
新随笔
联系
管理
订阅
2022年2月26日
每日小记-买股票,数组最大增量差**未完成
摘要: 问题就是一个数组,代表每天的股票价格,买了再卖找到最大的利润值 1.只许买卖一次 ###动态规划or最小前缀值 public int maximumDifference(int[] nums) { if (nums.length==0||nums==null)return -1; int res=-
阅读全文
posted @ 2022-02-26 20:16 荧惑微光
阅读(33)
评论(0)
推荐(0)
编辑
公告