122. Best Time to Buy and Sell Stock II\\714. Best Time to Buy and Sell Stock with Transaction Fee
122. Best Time to Buy and Sell Stock II思路:极大值减去极小值,所以适合 贪心算法,把nums[x+1]-nums[x]加在一起,就得到所有极大值减去极小值之和,也就是最大利润。class Solution: def maxProfit(self, prices): """ :type prices: List[...