Back to Question
Container With Most Water
Question Explain
Given $n$ non-negative integers representing an elevation map. Find two lines that together with the x-axis form a container, such that the container contains the most water. Use the Two-Pointer technique.
Start Trying This Question Simulation
Click "Start Speaking" and answer the question naturally.