摘要: medium是你的谎言. class Solution: def maxProfit(self, prices: List[int]) -> int: #1 if len(prices) == 1: return 0 #else max_profit = 0 min_price = prices[0 阅读全文
posted @ 2024-07-02 00:41 夜歌乘年少 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 想清楚了确实算是简单题. class Solution: def maxProfit(self, prices: List[int]) -> int: #1 if len(prices) == 1: return 0 #else max_profit = 0 min_price = prices[0 阅读全文
posted @ 2024-07-02 00:28 夜歌乘年少 阅读(2) 评论(0) 推荐(0) 编辑