Trapping Rainwater ๐
Today's Question:
It's a rainy day, and you are given n bars, each of 1 unit in width. How will you calculate the amount of water trapped between them? ๐ง๏ธ
First try to solve the problem here: https://leetcode.com/problems/trapping-rain-water/
Stu...
kanak22.hashnode.dev5 min read