2014年4月11日

Best Time to Buy and Sell Stock III

摘要: 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).可以买两次。如果只是两 阅读全文

posted @ 2014-04-11 20:10 pengyu2003 阅读(168) 评论(0) 推荐(0) 编辑

导航