Skip to content

Commit c308827

Browse files
Revise comment to No_121
1 parent bb0875d commit c308827

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

No_121_Best Time to Buy and Sell Stock/best_time_to_buy_and_sell_stock_by_valley_and_peak.py

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424

2525

2626
from typing import List
27+
28+
# Only long position (buy-and-sell) is allowed, required by problem description.
29+
2730
class Solution:
2831
def maxProfit(self, prices: List[int]) -> int:
2932

0 commit comments

Comments
 (0)