leetcode

42. Trapping Rain Water

Solution

Time complexity: O(n)

Space complexity: O(1)