Skip to content

Commit 0ca894c

Browse files
authored
Update best_time_to_buy_and_sell_stock_iii.py
1 parent 8eb1e9e commit 0ca894c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

best_time_to_buy_and_sell_stock_iii.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# coding: utf-8
22

33
class Solution:
44
"""
@@ -31,4 +31,6 @@ def maxProfit(self, prices):
3131
max_profit_2 = profit
3232
if (max_profit_2 + profits[i]) > ret: # 有先买后卖的限制
3333
ret = max_profit_2 + profits[i]
34-
return ret
34+
return ret
35+
36+
# medium: http://lintcode.com/zh-cn/problem/best-time-to-buy-and-sell-stock-iii/

0 commit comments

Comments
 (0)