Deep Dive

Trapping Rain Water

42. Trapping Rain Water · Arrays & Strings · 6 of 78

1/11

Rain on the bars

00110223140516372819210111
In this lessonStep 1 of 11 · ← → keys
The question

Given bar heights, compute how much rain water is trapped between them.