105 - The Skyline Problem

You may solve this problem with brute-force: Build an array \(h[x]\) of heights indexed by \(x\)-coordinate initialized to \(0\).

Creative Commons License
This blog by Che-Liang Chiou is licensed under a Creative Commons Attribution 4.0 International License.