leetcode.直方圖的水量(java)

題目 具體代碼java class Solution { public int trap(int[] height) { if(height == null || height.length == 0){ return 0; } //遍歷數組,找出最高的高度以及對應的下標 int max = 0,max
相關文章
相關標籤/搜索