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

RAIN WATER SAVING-INTERVIEW QUESTION(FAANG) #65

Open
akshitagupta15june opened this issue Sep 25, 2020 · 5 comments
Open

RAIN WATER SAVING-INTERVIEW QUESTION(FAANG) #65

akshitagupta15june opened this issue Sep 25, 2020 · 5 comments

Comments

@akshitagupta15june
Copy link
Member

AKSHITA has created an elevated roof. She wants to know how much water can she save during rain.

Given n non negative integers representing the elevation map where width of every bar is 1, Find the maximum water that she can save.

Explanation for the Sample input Testcase:
image

Elevation Map
Input Format

First line contains an integer n. Second line contains n space separated integers representing the elevation map.
Constraints

1 <= N <= 10^6
Output Format

Print a single integer containing the maximum unit of waters she can save.
Sample Input

10
0 2 1 3 0 1 2 1 2 1

Sample Output

5

@akshitagupta15june
Copy link
Member Author

ADD IN INTERVIEW QUESTION REPO

@PoojaPatel21
Copy link

hey, @akshitagupta15june can you assign this to me?

@akshitagupta15june
Copy link
Member Author

YES I AM ASSIGNING IT TO U
ADD IN ALGORITHMS FOLDER

@kanikarajpal
Copy link

Can you please assign this to me?

@Code-Techy
Copy link

Code-Techy commented Oct 25, 2022

Greetings , @akshitagupta15june

I was looking for a repository to contribute to open source and found this one.
Can you assign this to me? I'm familiar with the CPP Programming . and I would love to do it..

-Regards, thanks.

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

No branches or pull requests

4 participants