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