Skip to content

Commit 38d9875

Browse files
committed
update 121.best-time-to-buy-and-sell-stock.java
1 parent c05eccc commit 38d9875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

121.best-time-to-buy-and-sell-stock.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public int maxProfit(int[] prices) {
8282
return profit;
8383
}
8484

85-
int buy = 10000;
85+
int buy = 10000; // Max price constraint = 10^4
8686

8787
for (int i = 0; i < prices.length; i++) {
8888
int curr = prices[i];

0 commit comments

Comments
 (0)