We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c05eccc commit 38d9875Copy full SHA for 38d9875
121.best-time-to-buy-and-sell-stock.java
@@ -82,7 +82,7 @@ public int maxProfit(int[] prices) {
82
return profit;
83
}
84
85
- int buy = 10000;
+ int buy = 10000; // Max price constraint = 10^4
86
87
for (int i = 0; i < prices.length; i++) {
88
int curr = prices[i];
0 commit comments