Best Time to Buy and Sell Stock II
摘要:
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 as many transactions as you like (ie, buy one and sell one share of the stock multiple times). However, you may not engage in multiple transactions at 阅读全文
posted @ 2014-03-19 16:47 pengyu2003 阅读(104) 评论(0) 推荐(0)
浙公网安备 33010602011771号