Turn each interval into a start and an end, sort the events by time, and walk them once: the most intervals open at once, and the skyline of buildings with a max-heap of the heights standing.
This interactive visualization needs JavaScript.