Practice Problem

Trapping Rain Water

Difficulty: Hard

Given an elevation map, compute how much water it can trap after raining.