摘要: Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete at mosttwotransactions.Note:You may not engage in multiple transactions at the same time (ie, you must sell the stock before you buy again). 1 class So 阅读全文
posted @ 2012-11-29 19:35 chkkch 阅读(2099) 评论(0) 推荐(0) 编辑