会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tsukinousag1
UESTC
博客园
首页
新随笔
联系
订阅
管理
2021年4月23日
接雨水
摘要: 原题链接 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。 class Solution { public: int trap(vector<int>& height) { int ans=0; int n=height.size(); if(n<3
阅读全文
posted @ 2021-04-23 16:53 Tsukinousag1
阅读(86)
评论(0)
推荐(0)
公告