[LeetCode练习]接雨水

先记录一下答案:https://www.jianshu.com/p/49b5cf98b216 public int trapRainWater(int[] A) { if(A == null || A.length < 3) return 0; //两根指针一头一尾向中间进发 int left = 0; int right = A.length-1
相关文章
相关标签/搜索