- 博客(9)
- 收藏
- 关注
TheaterVisit
/*Problem StatementYou want to buy two neighboring tickets in the first row of the theater so that one of the tickets is as far from the aisles as possible.You will be given a String describing the fi...
2008-07-28 17:31:00 72
SkipStones
/*Problem StatementWhen a stone is thrown across water, sometimes it will land on the water and bounce rather than falling in right away. Suppose that a stone is thrown a distance of n. On each succes...
2008-07-28 17:31:00 401
BlockStructure
/*Problem StatementA group of vertical blocks are placed densely one after another on the ground. The blocks each have a width of 1, but their heights may vary. For example, if the heights of the vert...
2008-07-23 20:55:00 91
HardDuplicateRemover
/*Problem StatementWe have a sequence of integers, and we would like to remove all duplicate elements from this sequence. There may be multiple ways to perform this task. For example, given the sequen...
2008-07-23 15:17:00 72
RecurringNumbers
/*Problem StatementA rational number is defined as a/b, where a and b are integers, and b is greater than 0. Furthermore, a rational number can be written as a decimal that has a group of digits that ...
2008-07-22 09:41:00 117
FactorialSystem
/*Problem StatementIn the factorial number system the value of the first digit (from the right) is 1!, the value of the second digit is 2!, ..., and the value of the n-th digit is n!. This means that ...
2008-07-21 19:36:00 134
SalesRouting
package salesRouting;/*Problem Statement You want to send a group of salespeople from location 0 to location 1, but no two of them can travel through the same location (other than 0 and 1). This remo...
2008-07-15 10:53:00 65
CraneWork
/*Problem Statement There are three stacks of crates - two of them outside of the warehouse, and one inside the warehouse. We have a crane that can move one crate at a time, and we would like to mo...
2008-07-14 19:14:00 99
palindrome
package palindrome;/*Problem StatementA palindrome is a string that reads the same forward and backward. A palindrome substring is a contiguous sequence of characters taken from a string that form a p...
2008-07-14 17:39:00 161
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人