摘要: 42. 接雨水 class Solution { public: int trap(vector<int>& height) { int n = height.size(); stack<int> st; st.push(0); int answer = 0; for(int i = 1; i < 阅读全文
posted @ 2025-07-01 15:41 skyler886 阅读(8) 评论(0) 推荐(0)