Maximum Building Height

Solution Code

Time Complexity

O(m log m)

Space Complexity

O(m log m)