[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
相關文章
相關標籤/搜索