Merkle Science interview question

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

Interview Answer

Anonymous

3 May 2023

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