Open In App

Heap Data Structure

Last Updated : 26 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

A Heap is a complete binary tree data structure that satisfies the heap property: for every node, the value of its children is greater than or equal to its own value. Heaps are usually used to implement priority queues, where the smallest (or largest) element is always at the root of the tree.


Basics

Library Implementations

Easy Problems

Medium Problems

Hard Problems

Other Types of Heaps

Quick Links:

Recommended:


Article Tags :
Practice Tags :

Similar Reads