/heap-array

Heap tree data structure

Primary LanguageC

Heap Tree Data Structure

A heap tree (implemented in dynamic array) written in C!

It can be switched between min heap and max heap by modifying the header file

For Max heap:

#define HEAP_TYPE 1

For Min heap:

#define HEAP_TYPE 2

Example of a binary max-heap from wikipedia