二叉树,二叉树学习笔记

一 二叉树的概念,建立,遍历,求深度 实例程序 Technorati 标签: #include #include typedef struct tree { char data,struct tree* tleft,struct tree* tright,}*TREE,static int num = 0,TREE creattree(TREE &H) { char da,printf("inpu... [阅读全文]

平衡二叉树,二叉树

从来没在CSDN上面写过什么,今天就写一点吧。这是我同学让我做的一道题,有关二叉树的。基本上是二叉树的先序,中序,后序的递归非递归算法。让我感到为难的是他让我必须用C语言编写。#includestdio.h#include stdlib.h#includemalloc.h#includemath.h#define MaxSize 100//#includestack.h//#includesta... [阅读全文]

平衡二叉树: 二叉树

#includemalloc.h #define NULL 0 #includestdio.h struct jd { int data; struct jd *left; struct jd *right; }; int n; void front(struct jd *p) { if(p!=NULL) { printf("%d",p-data); front(p-left); ... [阅读全文]
1 共1条 分1页