𝗗𝗮𝗶𝗹𝘆 𝗗𝗦𝗔 🚀 LeetCode #42: Difficulty: Hard - 𝗧𝗿𝗮𝗽𝗽𝗶𝗻𝗴 𝗥𝗮𝗶𝗻 𝗪𝗮𝘁𝗲𝗿 𝗤𝘂𝗲𝘀𝘁𝗶𝗼𝗻 👇 Given an elevation map represented by an array, compute how much rainwater can be trapped ...
Two Pointers & Sliding Window Applied in problems such as Container With Most Water, Trapping Rain Water, Max Width Ramp, Sliding Window Maximum to optimize brute-force solutions. Sorting + Greedy + ...