Skip to content

Commit 69e54d9

Browse files
authored
Update 0714.买卖股票的最佳时机含手续费(动态规划).md
1 parent 1c583ae commit 69e54d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

problems/0714.买卖股票的最佳时机含手续费(动态规划).md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Go:
155155

156156
Javascript:
157157
```javascript
158-
const maxProfit5 = (prices,fee) => {
158+
const maxProfit = (prices,fee) => {
159159
let dp = Array.from(Array(prices.length), () => Array(2).fill(0));
160160
dp[0][0] = 0 - prices[0];
161161
for (let i = 1; i < prices.length; i++) {

0 commit comments

Comments
 (0)