摘要: 原题链接 给定 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)