leetcode 42 接雨水 trapping-rain-water【ct】

 ====

思路:当前点的 = min(lmax,rmax) - cur, 最终加到一起

 

posted @ 2023-06-14 22:59  hh9515  阅读(12)  评论(0)    收藏  举报