AlgoMaster Logo

Trapping Rain Water

heights=[0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1]
0 / 181
algomaster.io
Step:Start: check every bar against its tallest walls