Priority Queue (Heap)
A Priority Queue is specialized data structure commonly implemented using a Binary Heap (stored internally as a flat array). Elements are ordered such that the root always holds the highest priority element, granting O(log N) insertions and extractions.
Value
HEAP IS EMPTY
Console Output
N=0
>Waiting for operations...