文件名称:war
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2015-01-03
- 文件大小:
- 626kb
- 下载次数:
- 0次
- 提 供 者:
- 周
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
某年某月,A军与B军之间发生了一次战争。为了不让A军轻易的找到自己的总部,B军布下了一个二叉树型的阵形,这样既可以相互沟通,也可以很好的隐藏总部的位置。共有n个节点,每个节点用一个数字标号,总部就在其中的某个节点处。知道在前序遍历中B军总部排在标号串的第m位。
A军找到学过数据结构的你,请你根据已知的中序遍历和后序遍历得到B军的前序遍历,并得出B军总部究竟在标号为多少的节点上。
-A certain period, A B between army troops and a war breaks out. A military order to prevent easily find their headquarters, B Army planted a binary tree type of formation, so that both can communicate with each other, but also can be a good hiding spot headquarters. A total of n nodes, each with a numbered, headquartered in one of these nodes. Know the former military headquarters preorder in row B in the first m-bit string label. A military find data structures you have learned, you get the pre-order traversal B Army based on known preorder and postorder traversal, and draw B army headquarters on exactly how much the node labeled.
A军找到学过数据结构的你,请你根据已知的中序遍历和后序遍历得到B军的前序遍历,并得出B军总部究竟在标号为多少的节点上。
-A certain period, A B between army troops and a war breaks out. A military order to prevent easily find their headquarters, B Army planted a binary tree type of formation, so that both can communicate with each other, but also can be a good hiding spot headquarters. A total of n nodes, each with a numbered, headquartered in one of these nodes. Know the former military headquarters preorder in row B in the first m-bit string label. A military find data structures you have learned, you get the pre-order traversal B Army based on known preorder and postorder traversal, and draw B army headquarters on exactly how much the node labeled.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第07讲作业(2)
.............\Debug
.............\.....\第07讲作业(2).exe
.............\.....\第07讲作业(2).ilk
.............\.....\第07讲作业(2).pdb
.............\第07讲作业(2)
.............\第07讲作业(2).sdf
.............\第07讲作业(2).sln
.............\第07讲作业(2).v11.suo
.............\.............\Debug
.............\.............\.....\CL.read.1.tlog
.............\.............\.....\CL.write.1.tlog
.............\.............\.....\link-cvtres.read.1.tlog
.............\.............\.....\link-cvtres.write.1.tlog
.............\.............\.....\link-rc.read.1.tlog
.............\.............\.....\link-rc.write.1.tlog
.............\.............\.....\link.read.1.tlog
.............\.............\.....\link.write.1.tlog
.............\.............\.....\vc110.idb
.............\.............\.....\vc110.pdb
.............\.............\.....\第07讲作业(2).lastbuildstate
.............\.............\.....\第07讲作业(2).log
.............\.............\.....\第07讲作业(2).obj
.............\.............\第07讲作业(2).cpp
.............\.............\第07讲作业(2).vcxproj
.............\.............\第07讲作业(2).vcxproj.filters