Find the Container with the Most Water

Read the full interview experience this question came from →

Quick Overview

Given vertical-line heights, choose two positions that form a container with the x-axis and return the maximum water area permitted by their distance and shorter height.

Find the Container with the Most Water

Company: eBay

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Given vertical-line heights, choose two positions that form a container with the x-axis and return the maximum water area permitted by their distance and shorter height.

Read the full eBay Software Engineer interview experience this question came from

|Home/Coding & Algorithms/eBay
eBay logo
eBay
Aug 5, 2026
mediumSoftware EngineerOnsiteCoding & Algorithms
3
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...