随笔分类 -  图论

区间最值查询和最近公共祖先
摘要:原文链接 阅读全文

posted @ 2012-05-16 13:55 Hibernate4 阅读(99) 评论(0) 推荐(0) 编辑

hdu1710二叉树的遍历
摘要:给出先序中序求后序;先找到根节点;#include<cstdio> #include<cmath> #include<cstdlib> #include<algorithm> using namespace std; void build_tree(int n,int *a,int *b,int *c) { int *p=b; if(n<=0) return; while(2) { if(a[0]==*p) { break; }else p++; } int t... 阅读全文

posted @ 2012-05-03 15:38 Hibernate4 阅读(448) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示