Container With Most Water (Popular) Problem

Container With Most Water (Popular) Problem — ExecCode Medium DSA Practice

Solve the Container With Most Water (Popular) problem on ExecCode. Free online medium DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.

Problem description

Container With Most Water (Popular). Move shorter pointer. For Container With Most Water (Popular), focus on the exact input variables, return only the requested value, and preserve the required time complexity for the intended pattern.

Examples

Input {"height": [1, 8, 6, 2, 5, 4, 8, 3, 7]}; Output 49

Constraints

1 ≤ n ≤ 10^5

Practice Container With Most Water (Popular) free on ExecCode. Browse DSA problems, topic map, and placement guides.