Collected Rain Water
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can collect after raining.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)