摘要: Problem Description 判断两序列是否为同一二叉搜索树序列 Input 开始一个数n,(1 #include #include #include #include #include using namespace std; int str1[1024],... 阅读全文
posted @ 2015-08-15 20:15 星斗万千 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Description Hardwoods are the botanical group of trees that have broad leaves, produce a fruit or nut, and generally go dormant in the winter. Ame... 阅读全文
posted @ 2015-08-15 19:39 星斗万千 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Problem Description 在图论中,树:任意两个顶点间有且只有一条路径的图。 生成树:包含了图中所有顶点的一种树。 最小生成树:对于连通的带权图(连通网)G,其生成树也是带权的。生成树T各边的权值总和称为该树的权,权最小的生成树称为G的最小生成树(Minimum Spanning... 阅读全文
posted @ 2015-08-15 16:55 星斗万千 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Description Windy has N balls of distinct weights from 1 unit to N units. Now he tries to label them with 1 to N in such a way that: No two balls ... 阅读全文
posted @ 2015-08-15 15:45 星斗万千 阅读(111) 评论(0) 推荐(0) 编辑