摘要: 找到最低值和最高值 2、 计算差分序列,大于0加入 3、 把交易分成两次,分别完成,最后将利润相加求最大。 4、 Description: Say you have an array for which the ith element is the price of a given stock on 阅读全文
posted @ 2016-12-29 17:07 牧马人夏峥 阅读(179) 评论(0) 推荐(0) 编辑