
数据结构
苏尧木子
这个作者很懒,什么都没留下…
展开
-
二叉树的递归的算法
二叉树的递归算法 #define max 30 #define NULL 0 #include <stdio.h> #include <stdlib.h> typedef struct BNode { char data; /*数据域 */ struct BNode *lchild,*rchild;; //指向左右子女 }BinTree; void ...原创 2019-01-29 13:15:29 · 477 阅读 · 0 评论 -
二叉树的非递归算法
//按完全二叉树思想将输入的字符串生成二叉树 #define max 30 #define NULL 0 #define MAXSIZE 100 #include <stdio.h> #include <stdlib.h> typedef struct BNode { char data; /*数据域 */ struct BNode *lchild,*rch...原创 2019-01-29 16:56:54 · 406 阅读 · 1 评论