摘要: void PreorderTraversal(BinTree BT){ if(BT==NULL) return; printf(" %c",BT->Data); PreorderTraversal(BT->Left); PreorderTraversal... 阅读全文
posted @ 2018-07-21 10:47 MCQ 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 模板题。树状数组法:#includeusing namespace std;#define inf 0x3f3f3f3f#define ll long longconst int maxn=50005;const double eps=1e-8;int tree[ma... 阅读全文
posted @ 2018-07-21 09:48 MCQ 阅读(106) 评论(0) 推荐(0) 编辑
摘要: List Reverse( List L ){ List p,q; p=L; L=NULL; while(p){ q=p; p=p->Next; q->Next=L; L=q; } return L;} 阅读全文
posted @ 2018-07-21 09:37 MCQ 阅读(83) 评论(0) 推荐(0) 编辑