2019年12月21日

摘要: 地址 https://leetcode-cn.com/problems/trapping-rain-water/ 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。 示例: 输入: [0,1,0,2,1,0,1,3,2,1,2,1] 输出: 6 解答 阅读全文
posted @ 2019-12-21 16:36 itdef 阅读(503) 评论(0) 推荐(0)

导航