Professional Documents
Culture Documents
Salerio SlidesCarnival3
Salerio SlidesCarnival3
PRESENTATION
TITLE
THANKS!
Any questions?
You can find me at
@username & user@mail.me
2
Trapping Of Rain Water
Nikhil Gadge
1
Problem Satement
Given n non-negative integers representing an elevation map where the width of each
bar is 1, compute how much water it can trap after raining.
4 2 0 3 2 5
Trapped Water = 0 + 2 + 4 + 1 + 2 + 0 =9
Base Case
4 2 6 = 2 4 2 8 =2 6 2 8 =4