Skip to content

Commit f828a35

Browse files
author
Partho Biswas
committed
letcode 714
1 parent bf99f39 commit f828a35

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

leetcode.com/python/714_Best_Time_to_Buy_and_Sell_Stock_with_Transaction_Fee.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,6 @@ def maxProfit(self, prices, fee):
1717
return totalProfit
1818

1919

20-
# def maxProfit(self, prices, fee):
21-
# """
22-
# :type prices: List[int]
23-
# :type fee: int
24-
# :rtype: int
25-
# """
26-
# days = len(prices)
27-
# if days < 2:
28-
# return 0
29-
# profit = 0
30-
# minimumPrice = prices[0]
31-
# for i in range(1, days):
32-
# if prices[i] < minimumPrice:
33-
# minimumPrice = prices[i]
34-
# elif prices[i] > minimumPrice + fee:
35-
# profit += prices[i] - fee - minimumPrice
36-
# minimumPrice = prices[i] - fee
37-
# return profit
38-
39-
40-
41-
4220
sol = Solution()
4321
prices = [1,3,7,5,10,3]
4422
fee = 3

0 commit comments

Comments
 (0)