上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 1014. Waiting in Line (30)Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area... 阅读全文
posted @ 2015-08-22 21:19 JackWang822 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 1053. Path of Equal Weight (30)Given a non-empty tree with root R, and with weight Wiassigned to each tree node Ti. Theweight of a path from R to Lis ... 阅读全文
posted @ 2015-08-22 17:34 JackWang822 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1064. Complete Binary Search Tree (30)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left s... 阅读全文
posted @ 2015-08-22 11:53 JackWang822 阅读(666) 评论(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 route... 阅读全文
posted @ 2015-08-22 11:19 JackWang822 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1049. Counting Ones (30)The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the... 阅读全文
posted @ 2015-08-21 22:25 JackWang822 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1045. Favorite Color Stripe (30)Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her ... 阅读全文
posted @ 2015-08-21 21:35 JackWang822 阅读(1386) 评论(0) 推荐(0) 编辑
摘要: 1056. Mice and Rice (25)Mice and Riceis the name of a programming contest in which each programmer must write a piece of code to control the movements... 阅读全文
posted @ 2015-08-21 19:45 JackWang822 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1030. Travel Plan (30)A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supp... 阅读全文
posted @ 2015-08-20 21:26 JackWang822 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1010. Radix (25)Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is "yes", if 6 is a decimal n... 阅读全文
posted @ 2015-08-20 20:43 JackWang822 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1003. Emergency (25)As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities ... 阅读全文
posted @ 2015-08-20 16:48 JackWang822 阅读(233) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页