Given an heightMap, where each cell represents the height of a unit cell in a 2D elevation map, return the total volume of water that can be trapped after raining.
Constraints:
m heightMap.length
n heightMap[i].length
m, n
heightMap[i][j]
Given an heightMap, where each cell represents the height of a unit cell in a 2D elevation map, return the total volume of water that can be trapped after raining.
Constraints:
m heightMap.length
n heightMap[i].length
m, n
heightMap[i][j]