We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cb90cc commit cf36d77Copy full SHA for cf36d77
best-time-to-buy-and-sell-stock/changhyumm.py
@@ -6,4 +6,4 @@ def maxProfit(self, prices: List[int]) -> int:
6
min_price = min(prices[i], min_price)
7
profit = prices[i+1] - min_price
8
max_profit = max(profit, max_profit)
9
- return max_profit
+ return max_profit
0 commit comments