← Questions

Trapping rain water II

0
ChalkCodingLast asked Feb 2026

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.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding