摘要:
n people wish to cross a bridge at night. A group of at most two people may cross at any time, and each group must have a flashlight. Only one flashli 阅读全文
摘要:
In an episode of the Dick Van Dyke show, little Richie connects the freckles on his Dad's back to form a picture of the Liberty Bell. Alas, one of the 阅读全文
摘要:
Among other things, Computational Molecular Biology deals with processing genetic sequences. Considering the evolutionary relationship of two sequence 阅读全文
摘要:
Recall the definition of the Fibonacci numbers: f1 := 1 f2 := 2 fn := fn-1 + fn-2 (n≥3) Given two numbers a and b, calculate how many Fibonacci number 阅读全文
摘要:
Alice and Bob haven't met for some time. Bob isn't very happy about this, so he urges Alice to finally make time for a meeting. Let's listen to an ext 阅读全文
摘要:
You are to write an interpreter for a simple computer. This computer uses a processor with a small number of machine instructions. Furthermore, it is 阅读全文
摘要:
"Let it Bead" company is located upstairs at 700 Cannery Row in Monterey, CA. As you can deduce from the company name, their business is beads. Their 阅读全文
摘要:
One steps through integer points of the straight line. The length of a step must be nonnegative and can be by one bigger than, equal to, or by one sma 阅读全文
摘要:
Snap is a 2-player card game. The deck of cards contains several of each type of card. Initially each player has one half of the deck, in some random 阅读全文
摘要:
将许多独立的元素通过某种方式相互合并为若干个集合的方法即为并查集。 阅读全文