摘要: 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 阅读全文
posted @ 2017-02-12 14:18 DGSX 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-02-10 15:32 DGSX 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Among other things, Computational Molecular Biology deals with processing genetic sequences. Considering the evolutionary relationship of two sequence 阅读全文
posted @ 2017-02-09 18:40 DGSX 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-02-09 15:59 DGSX 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-02-09 13:12 DGSX 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-02-08 17:59 DGSX 阅读(256) 评论(0) 推荐(0) 编辑
摘要: "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 阅读全文
posted @ 2017-02-08 13:43 DGSX 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-02-07 18:38 DGSX 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-02-07 17:14 DGSX 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 将许多独立的元素通过某种方式相互合并为若干个集合的方法即为并查集。 阅读全文
posted @ 2017-02-07 14:37 DGSX 阅读(116) 评论(0) 推荐(0) 编辑