摘要: 题目如下: 方法一:动态编程解题思路: 代码如下: int trap(vector<int>& height) { if(height == null) return 0; int ans = 0; int size = height.size(); vector<int> left_max(siz 阅读全文