文章
1
粉丝
184
获赞
0
访问
7.0k
#include<bits/stdc++.h>
using namespace std;
typedef struct node
{
int data,last;
struct node *lchild,*rchild;
}*BitTree;
void InsertBitTree(BitTree &T,int x,int last)
{
if(T == NULL)
{
T = new node;
T->data = x;
T->last = last;
T->lchild = NULL;
T->rchild = NULL;
return;
}
if(x == T->data)
return;
else if(x < T->data)
InsertBitTree(T->lchild,x,T->data);
else
InsertBitTree(T->rchild,x,T-&...
登录后发布评论
暂无评论,来抢沙发