Trapping rain water II

0
Remix

Given a 2D grid of cell heights, compute how much rainwater the grid holds after rain, with water able to run off the outer edge.

ChalkTechnical phone screenLast asked Feb 2026
No answer yet. Write the first one; the best answer gets endorsed.