【leetcode-python-28】121. 买卖股票的最佳时机 渣渣原始版(83.90%) 参考官方版(94.46%) leetcode 121. 买卖股票的最佳时机 渣渣原始版(83.90%) 考虑的是最高点卖出,用了reverse(),不是很好。以后遇到“最大+inserve”,可以考虑“最小”。 class Solution(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ prices