Fill Rooms with Their Nearest Gate Distances
Company: Amazon
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Other
Overview: Fill Rooms with Their Nearest Gate Distances. Modify rooms in place. A cell is -1 for a wall, 0 for a gate, or 2147483647 for an empty room. Replace each reachable empty room by its shortest horizontal/vert