会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
intervention
静言思之 不能奋飞
博客园
首页
新随笔
联系
订阅
管理
2015年7月16日
[LeetCode] Best Time to Buy and Sell Stock 合集
摘要: https://leetcode.com/problems/best-time-to-buy-and-sell-stock/给出股票每一天的价格,求解只做一次交易的最佳收益方案。思路是首先建立一个存储股票每天差价的数组 diff[],其中 diff[i] = prices[i] - prices[i...
阅读全文
posted @ 2015-07-16 10:03 intervention
阅读(286)
评论(0)
推荐(0)
公告