Back to Question
Trapping Rain Water
Question Explain
Given $n$ non-negative integers representing an elevation map, compute how much water it can trap after raining. Solve using a Two-Pointer approach.
Start Trying This Question Simulation
Click "Start Speaking" and answer the question naturally.