The Skyline Problem
A Hard coding interview problem in the Heap / Priority Queue pattern.
Likely pattern
Always pull the current best element in log time.
Recognition cue: Top K, K closest, running median, or repeatedly taking the smallest / largest.
- Learn first
- Do not confuse it with
Topics
- Array
- Divide and Conquer
- Binary Indexed Tree
- Segment Tree
- Line Sweep
- Heap (Priority Queue)
- Ordered Set
Practise Heap / Priority Queue next
- 1Hard
- 2Hard
- 3Hard
- 4Hard
- 5Hard
- 6Hard
- 7Hard
- 8Hard