Add CMakeLists for all datastructs

+ Reorder, refactor comments
This commit is contained in:
2020-07-11 20:55:15 -04:00
parent be91573abc
commit a692a0f631
22 changed files with 168 additions and 50 deletions

View File

@@ -25,17 +25,17 @@ class MaxHeap {
MaxHeap operator=(MaxHeap rhs);
void insert(int val);
void del();
void print();
void print() const;
void makeEmpty();
int findMax();
int findMin();
bool isEmpty();
bool isFull();
int findMax() const;
int findMin() const;
bool isEmpty() const;
bool isFull() const;
private:
void insert(int*& heap, int _size, int val);
void del(int* heap);
void print(int* heap, int _index);
void print(int* heap, int _index) const;
void grow(int*& heap, int _size);
void siftUp(int* heap, int _index);
void siftDown(int* heap, int currentMax);