树
Mintl_
目前正处于并且或许将长期处于菜鸡状态…
展开
-
一些树的自用基操-yztpk
#include<stdio.h> #include<malloc.h> #define DataType char typedef struct Node { DataType data; struct Node *LChild; struct Node *RChild; }BiTNode, *BiTree; void CreateBiTree(BiTree *bt)//前序建立 { DataType ch; ch = getchar(); if(ch == '.原创 2021-01-06 00:38:23 · 98 阅读 · 0 评论 -
ThBTree _未补全-yztpk
树的中序线索化(前驱、后继、遍历)-自用 #include<stdio.h> #include<malloc.h> #define DataType char typedef struct Node { struct Node* LChild; int Ltag; struct Node* RChild; int Rtag; DataType data; }BiTNode, *BiTree; BiTree pre = NULL; void CreateBiTree(原创 2021-01-06 00:23:55 · 89 阅读 · 0 评论