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 這是一道很是有意思的題目。若是明白了灌水類問題的核心思以後則能夠明白
相關文章
相關標籤/搜索