![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二叉树
键盘上的舞者
这个作者很懒,什么都没留下…
展开
-
HDU3999:The order of a Tree
Problem Description As we know,the shape of a binary search tree is greatly related to the order of keys we insert. To be precisely: 1. insert a key k to a empty tree, then the tree become a tree w原创 2013-04-04 10:54:11 · 1945 阅读 · 0 评论 -
HDU3791:二叉搜索树
Problem Description 判断两序列是否为同一二叉搜索树序列 Input 开始一个数n,(1 接下去一行是一个序列,序列长度小于10,包含(0~9)的数字,没有重复数字,根据这个序列可以构造出一颗二叉搜索树。 接下去的n行有n个序列,每个序列格式跟第一个序列一样,请判断这两个序列是否能组成同一颗二叉搜索树。 Output 如果序列相同则输出YES,否原创 2013-04-02 21:31:50 · 2134 阅读 · 1 评论 -
HDU1710:Binary Tree Traversals
Problem Description A binary tree is a finite set of vertices that is either empty or consists of a root r and two disjoint binary trees called the left and right subtrees. There are three most imp原创 2013-04-02 23:30:08 · 2329 阅读 · 1 评论