Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day 21: Q2 - Container With Most Water #421

Open
Mansi8874 opened this issue Jan 16, 2024 · 6 comments
Open

Day 21: Q2 - Container With Most Water #421

Mansi8874 opened this issue Jan 16, 2024 · 6 comments
Assignees

Comments

@Mansi8874
Copy link
Contributor

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 container, such that the container contains the most water.

Return the maximum amount of water a container can store.

Notice that you may not slant the container.

Example 1:
Input: height = [1,8,6,2,5,4,8,3,7]
Output: 49

Example 2:
Input: height = [1,1]
Output: 1

Constraints:
n == height.length
2 <= n <= 105
0 <= height[i] <= 104

@namita0210
Copy link
Contributor

Please assign this issue to me @bh-g

@Kalpana8055
Copy link
Contributor

@bh-g please assign to me

@Akansha77
Copy link
Contributor

Please assign this issue to me.

@Shubhra-Narang
Copy link
Contributor

Please assign this issue to me

@Tech-neophyte
Copy link
Contributor

Hi! Please assign for solution in python3 @karishma-2020 @bh-g

Tech-neophyte added a commit to Tech-neophyte/LeetCode_Q that referenced this issue Jan 20, 2024
Akansha77 added a commit to Akansha77/LeetCode_Q that referenced this issue Jan 23, 2024
bh-g added a commit that referenced this issue Jan 23, 2024
Day 21: Q2 - Container With Most Water #421 cpp code added.
@sriya-singh
Copy link

@bh-g @kratika-Jangid @karishma-2020 please assign this issue to me. I have a better approach in cpp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants