leetcode.直方图的水量(java)

题目 具体代码java class Solution { public int trap(int[] height) { if(height == null || height.length == 0){ return 0; } //遍历数组,找出最高的高度以及对应的下标 int max = 0,max
相关文章
相关标签/搜索