摘要:
121. 买卖股票的最佳时机 minPrice 维护到当天为止的最低价格 maxProfit 维护到当天我为止的最大利润 例如: [2,5,1,3], 第二天: minPrice=2 maxProfit=3; 第四天:minPrice=1 maxProfit=max(3, 3-1=2)=3; cla 阅读全文
posted @ 2023-07-08 21:25
archaique
阅读(24)
评论(0)
推荐(0)
2023年7月8日