-
Notifications
You must be signed in to change notification settings - Fork 49
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
Comments
Please assign this issue to me @bh-g |
@bh-g please assign to me |
Please assign this issue to me. |
Please assign this issue to me |
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
… code added by Akansha77
bh-g
added a commit
that referenced
this issue
Jan 23, 2024
Day 21: Q2 - Container With Most Water #421 cpp code added.
@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
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
The text was updated successfully, but these errors were encountered: