Loading problem…
You are given an integer array height of length n. The ith value is the height of a vertical line at position i.
Choose two lines that form a container with the x-axis and return the maximum amount of water it can store. The container cannot be slanted.
Example 1:
Example 2: