摘要: 题目描述 给一棵二叉树的层序遍历序列和中序遍历序列,求这棵二叉树的先序遍历序列和后序遍历序列。 给一棵二叉树的层序遍历序列和中序遍历序列,求这棵二叉树的先序遍历序列和后序遍历序列。 输入 每个输入文件中一组数据。 第一行一个正整数N(1<=N<=30),代表二叉树的结点个数(结点编号为1~N)。接下 阅读全文
posted @ 2017-02-28 21:48 Num.Zero 阅读(1540) 评论(0) 推荐(0) 编辑
摘要: 1087. All Roads Lead to Rome (30) Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the rout 阅读全文
posted @ 2017-02-28 14:36 Num.Zero 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 1107. Social Clusters (30) When register on a social network, you are always asked to specify your hobbies in order to find some potential friends wit 阅读全文
posted @ 2017-02-28 13:23 Num.Zero 阅读(304) 评论(0) 推荐(0) 编辑