Programming assignment to merge two skylines together and output the list of points
A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when
viewed from a distance. In this assignment, buildings are assumed to be rectangular and
represented by an ordered-triple of integers, 〈??, ℎ, ??〉 where ?? denotes the x-coordinate of the left
side of a building (along the x axis), ℎ denotes its height (along the y axis) and ?? denotes the
right side of a building (along the x axis). The x axis is assumed to start at 0.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |