Skip to content

Commit ef4db28

Browse files
authored
Update buy_sell_stock.py
Added space after before negative integers.
1 parent f49eefa commit ef4db28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dp/buy_sell_stock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def max_profit_naive(prices):
3737
def max_profit_optimized(prices):
3838
"""
3939
input: [7, 1, 5, 3, 6, 4]
40-
diff : [X,-6, 4,-2, 3,-2]
40+
diff : [X, -6, 4, -2, 3, -2]
4141
:type prices: List[int]
4242
:rtype: int
4343
"""

0 commit comments

Comments
 (0)