Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Leetcode 755. Pour Water
Given an array of terrain heights, V droplets are poured one by one at index K and each droplet greedily rolls to the leftmost lowest reachable position (otherwise to the right) before settling; return the final heights after all drops. The core challenge is correctly simulating these local greedy flows (left-then-right scan) and updating heights efficiently.
Asked at:
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Mid December, 2024
Mid-level
Store the list of points where water would be collected in the matrix problem
Mid December, 2024
Mid-level
Find the point where water gets stored in a matrix when water falls from each point, using graphs and DP
Mid December, 2024
Mid-level
Find the point where water gets stored in a matrix when water falls from each point, using graphs and DP
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.