02.05 · Problem
Trapping Rain Water
This problem is part of solulu Pro
height[i] is the height of a bar of width 1. After it rains, water collects between taller bars. Return the total units of water trapped.
Lifetime ₹1,999 ₹999 · Launch offer
Item 14 of 150 · updated 2026-10-12