Closed akshitagupta15june closed 3 years ago
ADD IN INTERVIEW QUESTION REPO
Hi, I'd like to work on this.
ok assigning to u
PROCESS OF CONTRIBUTION IN THIS REPOSITORY
FORK THIS REPOSITORY ADD YOUR CODE IN RESPECTIVE FOLDER CREATE A PULL REQUEST AFTER A SIMPLE CHECK I WILL MERGE THE PR
HAPPY CODING AND CONTRIBUTING!!!!
Hey, I would Like to work on this
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](https://user-images.githubusercontent.com/57909583/94304026-76b06f00-ff8c-11ea-8c93-b7f40c1266fd.png)
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