Skip to content

Commit d7eca5a

Browse files
authored
Update best_time_to_buy_and_sell_stock_ii.py
1 parent 0ca894c commit d7eca5a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

best_time_to_buy_and_sell_stock_ii.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
"""
@@ -21,4 +21,6 @@ def maxProfit(self, prices):
2121
buy_price = -1
2222
if buy_price != -1:
2323
ret += prices[-1] - buy_price
24-
return ret
24+
return ret
25+
26+
# medium: http://lintcode.com/zh-cn/problem/best-time-to-buy-and-sell-stock-ii/

0 commit comments

Comments
 (0)