Trapping Rain Water
HardTwo Pointers
The problem
Given an elevation map, compute how much rainwater can be trapped between the bars.
Full statement, examples and constraints: see the original problem link below.
Given an elevation map, compute how much rainwater can be trapped between the bars.
Full statement, examples and constraints: see the original problem link below.