DIY: Trapping Rainwater
Explore how to implement an algorithm in Elixir to compute the volume of water trapped by an elevation map after rain. Understand the problem of trapped rainwater, practice coding with a hands-on function, and prepare for interview questions that involve algorithmic problem-solving related to arrays and elevation data.
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 ...