- Time : O(n)
- Space : O(1)
c++
1 | int Solution::trap(const vector<int> &A) { |