摘要: leetcode上的几道题,意思是知道股票的走势,怎么获得买卖最大利润,卖的日子必须在买的日子的后面,每一道题的限制不一样,用到的算法也可能不一样。 121. Best Time to Buy and Sell Stock 题干如下: Say you have an array for which 阅读全文
posted @ 2018-06-17 17:40 Gouden 阅读(124) 评论(0) 推荐(0) 编辑