c++實現最大堆和最小堆

註釋部分已經說明如何創建最大堆code template<class T> class MinHeap { public: MinHeap() { _maxSize = 0; _index = -1; _minHeap = NULL; } MinHeap(int maxsize) { _maxSize = maxsize; _index = -1; _m
相關文章
相關標籤/搜索