摘要: 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).key points: 阅读全文
posted @ 2012-12-27 00:54 西施豆腐渣 阅读(128) 评论(0) 推荐(0) 编辑