摘要: Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are 阅读全文
posted @ 2018-03-03 23:27 ZHUQW 阅读(137) 评论(0) 推荐(0) 编辑
摘要: British astronomer Eddington liked to ride a bike. It is said that in order to show off his skill, he has even defined an "Eddington number", E -- tha 阅读全文
posted @ 2018-03-03 23:01 ZHUQW 阅读(127) 评论(0) 推荐(0) 编辑
摘要: "Let's C" is a popular and fun programming contest hosted by the College of Computer Science and Technology, Zhejiang University. Since the idea of th 阅读全文
posted @ 2018-03-03 22:38 ZHUQW 阅读(168) 评论(0) 推荐(0) 编辑
摘要: A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes 阅读全文
posted @ 2018-03-03 22:19 ZHUQW 阅读(121) 评论(0) 推荐(0) 编辑
摘要: This time, you are supposed to help us collect the data for family-owned property. Given each person's family members, and the estate(房产)info under hi 阅读全文
posted @ 2018-03-03 21:45 ZHUQW 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Given a set of N (> 1) positive integers, you are supposed to partition them into two disjoint sets A1 and A2 of n1 and n2numbers, respectively. Let S 阅读全文
posted @ 2018-03-03 17:41 ZHUQW 阅读(188) 评论(0) 推荐(0) 编辑
摘要: On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear rep 阅读全文
posted @ 2018-03-03 17:28 ZHUQW 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is t 阅读全文
posted @ 2018-03-03 16:14 ZHUQW 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Given a tree, you are supposed to tell if it is a complete binary tree. Input Specification: Each input file contains one test case. For each case, th 阅读全文
posted @ 2018-03-03 14:19 ZHUQW 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following: The number of people in each 阅读全文
posted @ 2018-03-03 12:14 ZHUQW 阅读(461) 评论(0) 推荐(0) 编辑