摘要: 给定一棵二叉树的先序遍历序列和中序遍历序列,要求计算该二叉树的高度。输入格式:输入首先给出正整数N(≤50),为树中结点总数。下面两行先后给出先序和中序遍历序列,均是长度为N的不包含重复英文字母(区别大小写)的字符串。输出格式:输出为一个整数,即该二叉树的高度。输入样... 阅读全文
posted @ 2017-11-13 17:30 Assassin_poi君 阅读(426) 评论(0) 推荐(0)
摘要: Write a program to find the topological order in a digraph.Format of functions:bool TopSort( LGraph Graph, Vertex TopOrder[] );where L... 阅读全文
posted @ 2017-11-13 16:40 Assassin_poi君 阅读(886) 评论(0) 推荐(0)