DIY: Trapping Rainwater
Understand how to calculate trapped rainwater given ground elevations by implementing a function in Go. This lesson helps you develop problem-solving skills applicable to coding interviews, using a practical Uber-related challenge.
We'll cover the following...
We'll cover the following...
Problem statement
We have n non-negative integers representing an elevation map where the width of each bar is 1. Compute how much water it can trap after ...