- 博客(3)
- 收藏
- 关注
原创 kruskalMST
#include #include #include struct Edge { int src, dest, weight; }; struct Graph { int V, E; struct Edge* edge; }; struct Graph* createGraph(int V, int E) { struct Grap
2014-12-03 18:24:18 341
原创 二叉排序树后序判断
#include int ispost(int p[],int begin,int end){ int root=*(p+end); int i=begin; int mid,j; if(begin>end) return 0; if(begin==end) return 1; for(i;i!=end;++i) { if(*(p+i)>root
2014-12-03 12:31:34 373 1
原创 已知后序与中序,求前序
//in+post->pre; #include #include #include typedef struct node{ char data; struct node *left; struct node *right; }Node; void preTravel(Node *root) { printf("%c",root->data);//visit(root
2014-12-03 09:25:31 349
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人