#42

Trapping Rain Water

hard· Two Pointersruns: 0

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.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.