摘要: 翻译:假设你的数组中第i个元素是第i天的股票价格 。你最多只能做一次交易(买进并卖出一支股票,可以不做),设计一个算法来实现利润最大。 Say you have an array for which the ith element is the price of a given stock on d 阅读全文
posted @ 2018-01-29 15:17 同销万古愁 阅读(114) 评论(0) 推荐(0) 编辑