上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: DescriptionOur Black Box represents a primitive database. It can save an integer array and has a special i variable. At the initial moment Black Box is empty and i equals 0. This Black Box processes a sequence of commands (transactions). There are two types of transactions: ADD (x): put element x i. 阅读全文
posted @ 2013-08-21 15:59 孔凡凯凯 阅读(295) 评论(0) 推荐(0) 编辑
摘要: DescriptionHardwoods are the botanical group of trees that have broad leaves, produce a fruit or nut, and generally go dormant in the winter. America's temperate climates produce forests with hundreds of hardwood species -- trees that share certain biological characteristics. Although oak, maple 阅读全文
posted @ 2013-08-20 15:52 孔凡凯凯 阅读(309) 评论(0) 推荐(0) 编辑
摘要: DescriptionIn this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the sequence is sorted in ascending order. For the input sequence 9 1 0 5 4 , Ultra-QuickSort produces the output 阅读全文
posted @ 2013-08-20 09:32 孔凡凯凯 阅读(216) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) planks of wood, each having some integer length Li (1 ≤ Li ≤ 50,000) units. He then purchases a single long board just long enough to saw into the N 阅读全文
posted @ 2013-08-19 17:00 孔凡凯凯 阅读(320) 评论(0) 推荐(0) 编辑
摘要: DescriptionSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best strategy is to separate the suspects from others. In the Not-Spreading-Your-Sickness University (NSYSU), 阅读全文
posted @ 2013-08-19 14:56 孔凡凯凯 阅读(286) 评论(0) 推荐(0) 编辑
摘要: Crawling in process... Crawling failed DescriptionYou have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we will not discuss in detail how the strings are generated and inser 阅读全文
posted @ 2013-08-19 14:52 孔凡凯凯 阅读(319) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds of thousands of contributors to map how the Earth was populated. As an IBM researcher, you have been tasked with writing a program that will find commonali 阅读全文
posted @ 2013-08-19 14:51 孔凡凯凯 阅读(259) 评论(0) 推荐(0) 编辑
摘要: DescriptionArbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For example, suppose that 1 US Dollar buys 0.5 British pound, 1 British pound buys 10.0 French francs, and 1 French franc buys 0.21 US dollar. 阅读全文
posted @ 2013-08-16 15:25 孔凡凯凯 阅读(327) 评论(0) 推荐(0) 编辑
摘要: DescriptionAdvanced Cargo Movement, Ltd. uses trucks of different types. Some trucks are used for vegetable delivery, other for furniture, or for bricks. The company has its own code describing each type of a truck. The code is simply a string of exactly seven lowercase letters (each letter on each 阅读全文
posted @ 2013-08-14 10:02 孔凡凯凯 阅读(242) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the traffic is difficult in Flatopia. The Flatopian government is aware of this problem. They're planning to build some highways so that it will be possible to drive between any pair of 阅读全文
posted @ 2013-08-13 17:19 孔凡凯凯 阅读(188) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页