Heap Data Structure
Heap is structurally a complete binary tree.
Min-heap exposes the minimum at the root.
Max-heap exposes the maximum at the root.
Insertion and deletion of the root take O(log n).
Peek at the root takes O(1).
Heaps are widely used in priority queues and scheduling.