26/32
Part 6 of 6 · Follow-upsLearn and do

Two pointers on unsorted data: Trapping Rain Water, on compiled LeetCode lists for OpenAI and Airbnb

Trapping Rain Water is on the compiled LeetCode company lists for OpenAI and Airbnb (2 sources). Given bar heights, how much water sits between them after rain? For the heights [3, 0, 2, 0, 4, 1, 0, 2]:

Predict

Bar heights 3, 0, 2, 0, 4, 1, 0, 2. How much water sits between them after rain?

Pick an answer above to see the rest