---
title: "Discussion on \"DSA DAY#5 : Contains Most Water\" | Hashnode"
description: "Discussion on \"DSA DAY#5 : Contains Most Water\". #Problem statment:You are given an integer array heights where heights[i] represents the height of the ithith bar.\nYou may choose any two bars to form a container. Return the maximum amount of water a container can store.\n# Clarify Requirement:\n\nCan ..."
url: "https://hashnode.com/posts/dsa-day5-contains-most-water/69136c3267f6ae2d96376eca"
---

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

Discussion

# [DSA DAY#5 : Contains Most Water](https://amit01.hashnode.dev/dsa-day5-contains-most-water?utm_source=hashnode&utm_medium=feed)

#Problem statment:You are given an integer array heights where heights\[i\] represents the height of the ithith bar. You may choose any two bars to form a container. Return the maximum amount of water a container can store. # Clarify Requirement: Can ...

Nov 11, 2025 · 1 min read · amit01.hashnode.dev  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#java](https://hashnode.com/tag/java)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#interview](https://hashnode.com/tag/interview)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)
-   [#faang](https://hashnode.com/tag/faang)
-   [#google](https://hashnode.com/tag/google)
-   [#software-development](https://hashnode.com/tag/software-development)

## Written by

[Amit Kumar](https://hashnode.com/@dev-Amit)

@dev-Amit · India

  
[View profile](https://hashnode.com/@dev-Amit)

Sharing my insights about dsa,java,tech news, interview prepration

Hi, I'm a backend software engineer with over 2+ years of industry experience. I have built a large, scalable, and distributed fintech-backed system for one of India's top banks. I like to do brainstorming of real-world problems and try to solve them using a programming language.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
