牛客761340385号
牛客761340385号
全部文章
分类
数据结构(7)
未归档(53)
归档
标签
去牛客网
登录
/
注册
三分秋水
学习
全部文章
(共63篇)
二叉树的递归遍历和性质
二叉树 1.结点结构 typedef struct BiTNode{ ElemType data; //数据域 struct BiTNode *lchild,*rchild; //指向该结点的左、右孩子指针 }BiTNo...
树
二叉树
遍历
结构类型
性质
递归
2019-12-10
0
549
二叉链表储存二叉树叶节点的权值
使用前序遍历 int WPL(BiTree root) { return wpl_PreOrder(root,0) } int wpl_PreOrder(BiTree root,int deep) { static int wpl=0; if(root->lchi...
树
二叉树
权值
2019-12-10
0
428
递归算法和非递归算法求二叉树的高度
递归算法: int Btdepth2(BiTree T) { if(T==NULL) return 0; ldep=Bdepth(T->lchild); rdep=Bdepth(T->rchild...
二叉树
树高
树
2019-12-10
0
475
首页
上一页
1
2
3
4
5
6
7
下一页
末页