
二叉树问题
文章平均质量分 60
ACder_chen
将AC进行到底
展开
-
poj2051Fence Repair笛卡尔树
#include #include #include #include using namespace std; const int M = 50010; struct node { int key, value; int id; }Heap[M]; int Stack[M]; int p[M]; int l[M]; int r[M]; int n; bool转载 2014-08-13 19:45:09 · 533 阅读 · 0 评论 -
poj1577 Falling Leaves
题意:原先有一颗未知的树, 每次删去树中叶子节点,下次删除上次删除后形成的新的叶子节点,直到删除根,给出每次删除的字母,要求你求出此树的前序遍历。 关键条件: 根左儿子字母都小于根,有孩子都大于根,原创 2014-08-13 10:11:11 · 779 阅读 · 0 评论