Trapping Rain Water

Given a list representing heights of walls, compute how much water can be trapped after raining.
[0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1]
Total : 1 Discussion
Login
Latesh Garg
    
This is my question :)
Reply