You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A **Heap** is a tree based data structure and it is a complete binary tree which satisfies the heap ordering property. The ordering can be one of two types:
4
+
5
+
the **min-heap property:** the value of each node is greater than or equal to the value of its parent, with the minimum-value element at the root.
6
+
the **max-heap property:** the value of each node is less than or equal to the value of its parent, with the maximum-value element at the root.
7
+
8
+
**Basic Operations:**
9
+
10
+
Following are the basic operations supported by a list.
11
+
12
+
***Insertion** − Adds an element at the max heap.
13
+
14
+
***Deletion** − Deletes an element at the beginning of the heap.
0 commit comments