← Adobe questions
CodingReported in a candidate post, Jul 2025

Container with most water

Filed under Adobe · Also reported at Daffodil Software, Fanatics, Flipkart, Infoedge, OYO

Given an array height where height[i] is a vertical line at position i, pick two lines that together with the x-axis form a container holding the most water, and return that maximum area.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Adobe questions

Collected from public candidate posts and coding forums. Updated Nov 2026.