Skip to content

Commit 09de877

Browse files
authored
Update 11-Container-With-Most-Water.js
Add forgotten `const`
1 parent c5fb91b commit 09de877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/11-Container-With-Most-Water.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var maxArea = function(height) {
88
let j = height.length - 1;
99

1010
while (i < j) {
11-
curr = (j - i) * Math.min(height[i], height[j]);
11+
const curr = (j - i) * Math.min(height[i], height[j]);
1212
max = Math.max(curr, max);
1313
if (height[i] > height[j]) {
1414
j--;

0 commit comments

Comments
 (0)