Skip to content

Commit

Permalink
Merge pull request neetcode-gh#486 from DanMossa/patch-1
Browse files Browse the repository at this point in the history
Add missing `const` to variable in 11
  • Loading branch information
Ahmad-A0 authored Jul 14, 2022
2 parents c5fb91b + 09de877 commit 53c3815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/11-Container-With-Most-Water.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var maxArea = function(height) {
let j = height.length - 1;

while (i < j) {
curr = (j - i) * Math.min(height[i], height[j]);
const curr = (j - i) * Math.min(height[i], height[j]);
max = Math.max(curr, max);
if (height[i] > height[j]) {
j--;
Expand Down

0 comments on commit 53c3815

Please sign in to comment.