Trapping Rain Water

Problem Statement : https://leetcode.com/problems/trapping-rain-water/ Water will be bounded if there exist two piles at index i and j where |j-i| > 1. So, we will use a stack to answer this…

Continue Reading Trapping Rain Water