Trapping rain water, with brute force then optimised
Filed under Brane Enterprises
The question
The candidate was asked the trapping rain water problem on LeetCode and gave a brute force solution, then an optimised one.
No write-up yet. Related questions below have one.
Related Brane Enterprises questions
Collected from public candidate posts and coding forums. Updated Nov 2026.