Trapping Rain Water II

Given n x m non-negative integers representing an elevation map 2d where the area of each cell is 1 x 1, compute how much water it is able to trap after raining.html 这是一道很是有意思的题目。若是明白了灌水类问题的核心思以后则能够明白
相关文章
相关标签/搜索