摘要: Description An encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol. 阅读全文
posted @ 2016-09-23 13:18 PrayG 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Description A prefix of a string is a substring starting at the beginning of the given string. The prefixes of "carbon" are: "c", "ca", "car", "carb", 阅读全文
posted @ 2016-09-23 13:17 PrayG 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Description You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you 阅读全文
posted @ 2016-09-23 13:16 PrayG 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Description In the year 8888, the Earth is ruled by the PPF Empire . As the population growing , PPF needs to find more land for the newborns . Finall 阅读全文
posted @ 2016-09-23 13:14 PrayG 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Description Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Description Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重 阅读全文
posted @ 2016-09-23 13:11 PrayG 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Description A hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary. You are to find all the h 阅读全文
posted @ 2016-09-23 13:09 PrayG 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Description Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history bo 阅读全文
posted @ 2016-09-23 13:03 PrayG 阅读(191) 评论(0) 推荐(0) 编辑