aayushi-droid / Edabit-Solutions

Edabit Solutions using Cpp(C++)
MIT License
39 stars 154 forks source link

Create RainwaterTrapping.cpp #297

Closed vaishnavijha closed 3 years ago

vaishnavijha commented 3 years ago

Description

Given an array arr[] of N non-negative integers representing height of blocks at index i as Ai where the width of each block is 1. Compute how much water can be trapped in between blocks after raining. Structure is like below: | | |_| We can trap 2 units of water in the middle gap. enter here if you have any details problem link: https://practice.geeksforgeeks.org/problems/trapping-rain-water/0 Program Name - RainwaterTrapping Problem (RainwaterTrapping.cpp) Issue No.- #296

Type issue number after hash(#)

Checklist(self check)