摘要: 1 //判断是否为完全二叉树 2 bool IsPBTree(BTNode *b) 3 { 4 bool isStart = false; 5 6 SqQueue *qu; 7 BTNode *p; 8 p = b; 9 InitQueue(qu); 10 enQueue(qu,p); 11 whi 阅读全文
posted @ 2020-04-16 13:26 whxway 阅读(389) 评论(0) 推荐(0)
摘要: 1 //层次遍历算法 2 //顺序环形队列 3 typedef struct{ 4 BTNode *data[MaxSize]; 5 int front; 6 int rear; 7 }SqQueue; 8 9 void InitQueue(SqQueue *&qu) 10 { 11 qu = (S 阅读全文
posted @ 2020-04-16 11:23 whxway 阅读(280) 评论(0) 推荐(0)