Movatterモバイル変換


[0]ホーム

URL:


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

Commit09de877

Browse files
authored
Update 11-Container-With-Most-Water.js
Add forgotten `const`
1 parentc5fb91b commit09de877

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
letj=height.length-1;
99

1010
while(i<j){
11-
curr=(j-i)*Math.min(height[i],height[j]);
11+
constcurr=(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)

[8]ページ先頭

©2009-2025 Movatter.jp