Back to Questions

Trapping Rain Water

101.5K viewsAsked 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.

Practice with This Question