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 hintsTopics
Also asked at 14 companies
More Media.net Questions
Minimum Total Space Wasted With K Resizing OperationsMediumDifference Between Maximum and Minimum Price SumHardCount the Number of Square-Free SubsetsMediumMaximum Genetic Difference QueryHardMaximum Value of an Ordered Triplet IIMedium
View all Media.net questions