目录

力扣714. 买卖股票的最佳时机含手续费

力扣714. Best Time to Buy and Sell Stock with Transaction Fee(买卖股票的最佳时机含手续费)

含手续费的股票交易。

示例 1:

../posts/01_学习/87_LeetCode/0714_买卖股票的最佳时机含手续费/img/0714-1-description.png

输入:prices = [1,3,2,8,4,9], fee = 2
输出:8
解释:...

提示:

  • 1 <= prices.length <= 5 * 10^4
  • 1 <= prices[i] < 5 * 10^4
  • 0 <= fee < 5 * 10^4