摘要: 42接雨水--双指针/动态规划/单调栈 题目: 分析 法一:动态规划 class Solution { public: int trap(vector<int>& height) { int ans=0; int dlmax[20006];//从左往右到当前的柱子最高柱高 int drmax[200 阅读全文
posted @ 2025-05-18 09:35 Annaprincess 阅读(13) 评论(0) 推荐(0)