摘要:
void BFSLayer(BinaryTreeNode* pRoot) { if(pRoot==nullptr) return; queue<BinaryTreeNode*> pNode; int curLayer=1,nextLayer=0; pNode.push(pRoot); while(! 阅读全文
posted @ 2019-02-25 18:41
Run_For_Love
阅读(225)
评论(0)
推荐(0)
摘要:
void BFS(BinaryTreeNode* pRoot) { if(pRoot==nullptr) { cout<<"empty binary tree!"<<endl; return; } queue<BinaryTreeNode*>pNode; pNode.push(pRoot); whi 阅读全文
posted @ 2019-02-25 12:30
Run_For_Love
阅读(202)
评论(0)
推荐(0)
摘要:
1 #include"iostream" 2 #include"stdio.h" 3 using namespace std; 4 5 const int MAXN=1000; 6 const int INF=10000000; 7 8 template<typename T>class Stack 阅读全文
posted @ 2019-02-25 10:39
Run_For_Love
阅读(225)
评论(0)
推荐(0)
摘要:
1 #include"iostream" 2 #include"stdio.h" 3 using namespace std; 4 5 void PrintMatrixInCircle(int** matrix,int rows,int columns,int start) 6 { 7 int en 阅读全文
posted @ 2019-02-25 09:42
Run_For_Love
阅读(162)
评论(0)
推荐(0)

浙公网安备 33010602011771号