You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Explanation:* The above vertical lines are represented by array [1,8,6,2,5,4,8,3,7]. In this case, the max area ofwater (blue section) the container can contain is49.
1578
+
>*Input:* `height = [1,8,6,2,5,4,8,3,7]` <br>
1579
+
>*Output:* `49` <br>
1580
+
>*Explanation:* The above vertical lines are represented by array [1,8,6,2,5,4,8,3,7]. In this case, the max area ofwater (blue section) the container can contain is49.
0 commit comments