![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tree
文章平均质量分 82
小学生反弹
这个作者很懒,什么都没留下…
展开
-
UVa, 10701 Pre, in and post
Problem F - Pre, in and postTime Limit: 1 secondA common problem in data structures is to determine the traversal ofa binary tree. There are three classic ways to do it:Pre-order: You must vis原创 2013-10-16 12:31:48 · 1494 阅读 · 0 评论 -
UVa, 536 Tree Recovery
Tree Recovery Little Valentine liked playing with binary trees very much. Her favoritegame was constructingrandomly looking binary trees with capital letters in the nodes.This is an exam原创 2013-10-16 12:36:15 · 1156 阅读 · 0 评论 -
TREES ON THE LEVEL
转自http://blog.csdn.net/metaphysis/article/details/7101708// UVa Problem 122 - Trees on the level// Verdict: Accepted// Submission Date: 2011-12-25// UVa Run Time: 0.008s//// 版权所有(C)2011,邱秋转载 2013-12-07 20:42:01 · 497 阅读 · 0 评论 -
双亲表示(数组表示)的树的基本操作
//树的构建,遍历,计算节点数,计算叶子节点数的基本操作#include#include#include#include #include#include#includeusing namespace std;#define MAX_TREE_SIZE 100typedef struct { char data; int parent;}PTNode;typ原创 2016-03-24 18:25:17 · 487 阅读 · 0 评论