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

Container with Most water #787

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Commits on Oct 6, 2021

  1. Configuration menu
    Copy the full SHA
    4489533 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2023

  1. Create Container with most water

    Given N non-negative integers a1,a2,....an where each represents a point at coordinate (i, ai). N vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i,0). Find two lines, which together with x-axis forms a container, such that it contains the most water.
    
    Note : In Case of single verticle line it will not be able to hold water.
    Rupali409 authored Oct 21, 2023
    Configuration menu
    Copy the full SHA
    2f0069e View commit details
    Browse the repository at this point in the history