摘要:
class Solution: def maxProfit(self, prices: List[int]) → int: minprice = prices[0] maxprofit = 0 for i in prices: minprice = min(minprice, i) maxprofi 阅读全文
posted @ 2021-06-24 00:33
W-forever
阅读(36)
评论(0)
推荐(0)
摘要:
class Solution: def canPlaceFlowers(self, flowerbed: List[int], n: int) → bool: if len(flowerbed) == 1: if flowerbed[0] == 0: return 1 >= n else: retu 阅读全文
posted @ 2021-06-24 00:32
W-forever
阅读(38)
评论(0)
推荐(0)

浙公网安备 33010602011771号