Given non-negative integers representing heights of vertical lines, find two lines that form a container holding the most water.
The container's area is .
Example: For heights [1,8,6,2,5,4,8,3,7], the max area is (between heights and , width ).
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Given non-negative integers representing heights of vertical lines, find two lines that form a container holding the most water.
The container's area is .
Example: For heights [1,8,6,2,5,4,8,3,7], the max area is (between heights and , width ).