数据结构与算法学习笔记03
2018-03-26Computer Science

树状结构的基础是二叉树,二叉树即度为2的树。
二叉树的链表结构
typedef struct TNode *Position;
typedef Position BinTree; /* 二叉树类型 */
struct TNode{ /* 树结点定义 */
ElementType Data; /* 结点数据 */
BinTree Left; /* 指向左子树 */
BinTree Right; /* 指向右子树 */
};
青衿AI
