Trapping Rain Water
Input: [0,1,0,2,1,0,1,3,2,1,2,1]
Output: 6Solution
class Solution {
public int trap(int[] height) {
}
}Last updated
Input: [0,1,0,2,1,0,1,3,2,1,2,1]
Output: 6class Solution {
public int trap(int[] height) {
}
}Last updated