diff --git a/problems/0714.买卖股票的最佳时机含手续费(动态规划).md b/problems/0714.买卖股票的最佳时机含手续费(动态规划).md index b854c65c..7c54a2fe 100644 --- a/problems/0714.买卖股票的最佳时机含手续费(动态规划).md +++ b/problems/0714.买卖股票的最佳时机含手续费(动态规划).md @@ -163,6 +163,7 @@ func maxProfit(prices []int, fee int) int { } return dp[n-1][1] } + func max(a, b int) int { if a > b { return a