Container With Most Water
Medium📝 Description
Find two lines that form container with most water
Input Format
Array of heights
Output Format
Maximum area
Constraints
n == height.length 2 ≤ n ≤ 10^5
🔍 Sample Input
[1,8,6,2,5,4,8,3,7]
✅ Sample Output
49
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run