2018年11月8日

树的创建与遍历

摘要: #include<iostream>#include<list>#include<fstream>#include<queue>using namespace std; template<class T>class Tree //树的建立{ T *NA; list<int> *HL; int roo 阅读全文

posted @ 2018-11-08 23:36 Numb_lzw 阅读(273) 评论(0) 推荐(0) 编辑

堆的实现

摘要: #include<iostream>#include<algorithm>#include<vector>using namespace std;int min(int a,int b){ return a>b?b:a;}template<class T> //堆的实现class Heap{ vec 阅读全文

posted @ 2018-11-08 22:26 Numb_lzw 阅读(181) 评论(0) 推荐(0) 编辑

导航