Leetcode 218. The Skyline Problem
Given a list of rectangular buildings [left, right, height], compute the skyline as the sequence of key points where the maximum building height changes across x; this requires identifying interval endpoints where the current max height rises or falls (commonly solved with a sweep-line + max-heap or divide-and-conquer) and merging any consecutive equal-height segments.
Asked at:
Amazon
Pinterest
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Early August, 2026
Pinterest
Mid-level
Late July, 2026
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.