复试-树
复试-树
二硫碘化钾kk
这个作者很懒,什么都没留下…
展开
-
二叉排序树基础
#include<bits/stdc++.h>using namespace std;typedef struct BiNode{ int data; BiNode *lchild,*rchild;}BiNode,*BiTree;//插入void Insert(BiTree &bt,int k){ if(bt==NULL) { bt=(BiTree)malloc(sizeof(BiNode)); bt-&g.原创 2022-03-10 16:37:20 · 122 阅读 · 0 评论 -
线索二叉树基础
#include<bits/stdc++.h>using namespace std;//定义typedef struct ThreadNode{ char data; ThreadNode *lchild,*rchild; int ltag,rtag;//0代表孩子,1代表后继}ThreadNode,*ThreadTree;//建一棵二叉树ThreadTree Create(){ ThreadTree tt; char ch; .原创 2022-03-09 21:12:36 · 153 阅读 · 0 评论 -
树的基础算法
#include<bits/stdc++.h>using namespace std;//定义typedef struct BiNode{ char data; BiNode *lchild,*rchild;}BiNode,*BiTree;//创建BiNode* Creat(){ BiNode *bt; char ch; cin>>ch; if(ch=='#') { bt=NULL; .原创 2022-03-08 20:51:27 · 167 阅读 · 0 评论