Trapping Rain Water Problem - Tutorial with Illustrations
Trapping Rainwater Problem states that given an array of n non-negative integers arr[] representing an elevation map where the width of each bar is 1, compute how much water it can trap after rain.Trapping Rainwater ProblemExamples: Input: arr[] = [3, 0, 1, 0, 4, 0, 2]Output: 10Explanation: The expe