[抄题]: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. [暴力解法]: 时间分析: 空间分析: [思维问题]: 灌水的多少基本上由左右边界中较矮的一块木板开始,由相邻是否有较高的木板决定.第一次学灌水,算了 [一句话思路]: [输入量]:空:…