We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
No description provided.
The text was updated successfully, but these errors were encountered:
/** * @param {number[]} height * @return {number} */ var maxArea = function(height) { let left = 0; right = height.length - 1, max = 0; while(left < right){ let temp = (right - left) * Math.min(height[left],height[right]) // 长x宽的值 if(temp > max){ max = temp } if(height[left] <= height[right]){ //留下长的那一边 left++ } else{ right-- } } return max };
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: