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

Commit53c3815

Browse files
authored
Merge pull requestneetcode-gh#486 from DanMossa/patch-1
Add missing `const` to variable in 11
2 parentsc5fb91b +09de877 commit53c3815

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