Container With Most Water
#11
Medium
Two Pointers
O(n)
O(1)
Amazon
Facebook
Microsoft
Bloomberg
Problem Description
You are given an integer array height of length n. Find two lines that together with the x-axis form a container that can hold the most water.