Back to QuestionsPractice with This Question
Trapping Rain Water
101.5K views•Asked at Meta•
Hard
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
Practice answering orally or with text to get instant AI feedback.