The Skyline Problem
The Skyline Problem gives sorted rectangular buildings with left and right positions and heights. Return outline points where it changes, ending at zero and combining adjacent segments of equal height.
We'll cover the following...
We'll cover the following...
Statement
Imagine standing at a distance, viewing the skyline of a city. The skyline is the shape formed by all the buildings in the city when viewed together. Your task is to determine the shape of this skyline, given all the buildings’ position and height. Each ...