Heap: A data structure in which elements are stored in a specific order such that the element with the highest or lowest value can be efficiently accessed.
Heap: A data structure in which elements are stored in a specific order such that the element with the highest or lowest value can be efficiently accessed.