Heap

Home > Computer Science > Algorithms and data structures > Stacks and Queues > Heap

This type of data structure stores its elements in an array in a way that each element is larger than or equal to its parent. It is useful when you need to find the maximum or minimum of a set of elements.