Merkle Science interview question

DSA - Trapping rainwater problem https://leetcode.com/problems/trapping-rain-water/

Interview Answer

Anonymous

May 3, 2023

I started with bruteforce, and later optimised it to a two pointer approach.