Trapping Rain Water II at Media.net

Hard64.0% acceptance

This problem has 100.0% frequency at Media.net.

Problem Description

Given an `m x n` integer matrix `heightMap` representing the height of each unit cell in a 2D elevation map, return _the volume of water it can trap after raining_.

Read full problem and hints

Topics

Also asked at 14 companies


More Media.net Questions

View all Media.net questions