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

Loading…