![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二叉树
大橘为重eleven
每天都因为自己太菜了而自闭
展开
-
二叉搜索树
题目描述:判断两序列是否为同一二叉搜索树序列输入:开始一个数n,(1<=n<=20) 表示有n个需要判断,n= 0 的时候输入结束。接下去一行是一个序列,序列长度小于10,包含(0~9)的数字,没有重复数字,根据这个序列可以构造出一颗二叉搜索树。接下去的n行有n个序列,每个序列格式跟第一个序列一样,请判断这两个序列是否能组成同一颗二叉搜索树。输出:如果序列相同则输出YES...原创 2019-08-08 10:07:07 · 131 阅读 · 0 评论 -
Binary Tree Traversals
题目描述: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 important ways in wh...原创 2019-08-07 19:13:37 · 118 阅读 · 0 评论 -
Tree Recovery
题目描述:Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letters in the nodes.This is an example of one of her c...原创 2019-08-07 19:53:57 · 112 阅读 · 0 评论 -
Trees on the level
题目描述:Trees are fundamental in many branches of computer science. Current state-of-the art parallel computers such as Thinking Machines’ CM-5 are based on fat trees. Quad- and octal-trees are fundamen...原创 2019-08-07 20:10:52 · 134 阅读 · 0 评论 -
Elven Postman
题目描述:Elves are very peculiar creatures. As we all know, they can live for a very long time and their magical prowess are not something to be taken lightly. Also, they live on trees. However, there is...原创 2019-08-07 20:22:15 · 209 阅读 · 0 评论