Trapping Rain Water — JavaScript hard interview problem
Given `n` non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
Tags: two-pointers, hard
Practice this Arrays problem free in the JS Interview Playground with automated tests and unlockable solutions.