Trapping Rain Water at ServiceNow
Hard66.8% acceptance
This problem has 87.5% frequency at ServiceNow.
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 ServiceNow Questions
Valid ParenthesesEasyNumber of Distinct Roll SequencesHardContainer With Most WaterMediumGenerate ParenthesesMediumFirst Missing PositiveHard
View all ServiceNow questions