mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2026-02-02 18:39:09 +08:00
47~541连接更新‘
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
## 123.买卖股票的最佳时机III
|
||||
|
||||
题目链接:https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii/
|
||||
[力扣题目链接](https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii/)
|
||||
|
||||
|
||||
给定一个数组,它的第 i 个元素是一支给定的股票在第 i 天的价格。
|
||||
@@ -44,7 +44,7 @@
|
||||
## 思路
|
||||
|
||||
|
||||
这道题目相对 [121.买卖股票的最佳时机](https://mp.weixin.qq.com/s/keWo5qYJY4zmHn3amfXdfQ) 和 [122.买卖股票的最佳时机II](https://mp.weixin.qq.com/s/d4TRWFuhaY83HPa6t5ZL-w) 难了不少。
|
||||
这道题目相对 [121.买卖股票的最佳时机](https://programmercarl.com/0121.买卖股票的最佳时机.html) 和 [122.买卖股票的最佳时机II](https://programmercarl.com/0122.买卖股票的最佳时机II.html) 难了不少。
|
||||
|
||||
关键在于至多买卖两次,这意味着可以买卖一次,可以买卖两次,也可以不买卖。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user