The Question
Coding
Trapping Rain Water
Given an elevation map represented as an integer array where each element is the height of a bar of width 1, compute the total amount of water that can be trapped between the bars after rainfall.
Java
Two Pointers
February 10, 2026