DIY: Trapping Rainwater
Explore how to calculate trapped rainwater using elevation maps in Python. Understand the problem, implement a solution, and prepare for similar coding interview questions with this practical exercise.
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 ...