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 c5fb91b commit 09de877Copy full SHA for 09de877
javascript/11-Container-With-Most-Water.js
@@ -8,7 +8,7 @@ var maxArea = function(height) {
8
let j = height.length - 1;
9
10
while (i < j) {
11
- curr = (j - i) * Math.min(height[i], height[j]);
+ const curr = (j - i) * Math.min(height[i], height[j]);
12
max = Math.max(curr, max);
13
if (height[i] > height[j]) {
14
j--;
0 commit comments