Trapping rainwater is a very frequently asked interview question in all top Tier tech companies.
Link: https://leetcode.com/problems/trapping-rain-water/
I have used Two pointers and solved this problem
0:00 Intuition and Solution approach
2:40 Coding with explanation
#twopointers #leetcode #arrays
Learn more about two pointers technique: https://youtu.be/lthRF-FN7R0
Download
0 formats
No download links available.
LeetCode 42. Trapping Rain Water - Facebook question | NatokHD