Trapping Rain Water (#42)
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.
Company Tags: Amazon, Adobe
Core Concept: Dynamic Programming, Two-Pointer
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.
Company Tags: Amazon, Adobe
Core Concept: Dynamic Programming, Two-Pointer