luyuhuang.github.io icon indicating copy to clipboard operation
luyuhuang.github.io copied to clipboard

三个思路相通的最大面积问题 - Luyu Huang's Tech Blog

Open luyuhuang opened this issue 4 years ago • 0 comments

https://luyuhuang.github.io/2020/01/16/three-maximum-area-problems.html

笔者在 LeetCode 上看到了三个非常有意思的最大面积问题, 这里来分享一下.1. 接雨水题目源自Leetcode: 接雨水 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。 上面是由数组 [0,1,0,2,1,0,1,3,2,1,2,1] 表示的高度...

luyuhuang avatar Mar 24 '20 14:03 luyuhuang