LeetCode042——接雨水

个人LeetCode代码仓:https://github.com/617076674/LeetCodejava 原题连接:https://leetcode-cn.com/problems/trapping-rain-water/description/git 题目描述:github 知识点:数组 思路一:分别计算每一层能接的雨水数,再逐层累加获得结果(在LeetCode中提交会超时) 首先遍历数组
相关文章
相关标签/搜索