heap data structure

A heap data structure is a complete binary tree that satisfies the heap property, where in a max heap, the value of each node is greater than or equal to the values of its children, and in a min heap, the value of each node is lesser than or equal to the values of its children.

Requires login.