Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 807. Max Increase to Keep City Skyline
Given an n x n grid of building heights, increase building heights without changing the skyline seen from any cardinal direction (i.e., without altering any row or column maximum). The maximum total increase is the sum over all cells of (min(max height in its row, max height in its column) - current height), clamped to nonnegative values.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.