Largest Container Between Two Vertical Lines

Asked at Oracle · Coding Questions · Difficulty: Medium · Last asked Jan 6, 2026

Given the heights of vertical lines, choose two of them that, together with the x-axis, form the container holding the most water, and return that area.

Loading the problem…