---
title: "Discussion on \"Container With Most Water\" | Hashnode"
description: "Discussion on \"Container With Most Water\". 🧠 Problem\nContainer With Most Water\nYou are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]). Find two lines that together with the x-axis form a co..."
url: "https://hashnode.com/posts/container-with-most-water/68a60b701084dc46466cd658"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Container With Most Water](https://releetcode.hashnode.dev/container-with-most-water?utm_source=hashnode&utm_medium=feed)

🧠 Problem Container With Most Water You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height\[i\]). Find two lines that together with the x-axis form a co...

Aug 20, 2025 · 2 min read · releetcode.hashnode.dev  
Read the article

-   [#array](https://hashnode.com/tag/array)
-   [#two-pointers](https://hashnode.com/tag/two-pointers)
-   [#greedy](https://hashnode.com/tag/greedy)

## Written by

[RedAurther](https://hashnode.com/@RedAurther)

@RedAurther

  
[View profile](https://hashnode.com/@RedAurther)

Nothing is fun

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
