Skip to content

Commit

Permalink
Update 0714.买卖股票的最佳时机含手续费(动态规划).md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackeyjia authored Jul 10, 2021
1 parent 1c583ae commit 69e54d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Go:

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

0 comments on commit 69e54d9

Please sign in to comment.