Trapping Rain Water at Yandex
Hard66.8% acceptance
This problem has 62.5% frequency at Yandex.
Problem Description
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.
Read full problem and hintsTopics
Also asked at 77 companies
More Yandex Questions
Longest Subarray of 1's After Deleting One ElementMediumSummary RangesEasyString CompressionMediumFind K Closest ElementsMediumMaximize Distance to Closest PersonMedium
View all Yandex questions