Available question text
Assign nonnegative heights to a grid so water cells are 0, adjacent cells differ by at most 1, and the global maximum height is maximized. This reduces to computing each cell's distance to the nearest water cell (a multi-source BFS/shortest-path on the unweighted grid).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1765. Map of Highest Peak
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source