随笔分类 -  数据结构

摘要:View Code 1 /* 2 旋转都是废话 3 直接找他的中序序列就行 4 用数组 模仿建树 5 */ 6 #include<iostream> 7 #include<cstdio> 8 #include<algorithm> 9 using namespace std;10 11 struct node12 {13 int h;14 int L,R;15 }a[100];16 17 void slove(int n)18 {19 if(a[n].L!=-1)slove(a[n].L);20 printf("%d\n",n);21 i 阅读全文
posted @ 2012-04-03 22:06 知行执行 阅读(186) 评论(0) 推荐(0)