Apple logoApple
CodingMembers

Trapping Rain Water

Members only

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.

SWE
hard
array
two-pointer
monotonic-stack
Frequency
Single report
Last asked
2026-04-01
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...