DIY: The Skyline Problem
Explore how to solve the skyline problem by interpreting building coordinates and heights to generate the city skyline. Learn to create a list of skyline points reflecting the outer contour of buildings and handle edge cases like merging consecutive segments. This lesson helps you develop skills to map problem statements to coding solutions using C#.
We'll cover the following...
We'll cover the following...
Problem statement
Given a buildings list, you have to draw the skyline of the outer contour of the city. The citys’ skyline is formed by the silhouette of all of its buildings.
Each building in this buildings ...