Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 38d9875

Browse files
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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /