2020年6月11日

Leetcode 42题 接雨水(Trapping Rain Water) Java语言求解

摘要: 题目链接 https://leetcode-cn.com/problems/trapping-rain-water/ 题目内容 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。 示例: 输入: [0,1,0,2,1,0,1,3,2,1,2,1] 输出 阅读全文

posted @ 2020-06-11 09:44 随机的未知 阅读(211) 评论(0) 推荐(0)

导航