ACM算法之散列查找
文章平均质量分 58
Tander_Tang
喜欢数学,喜欢算法,喜欢编程,喜欢计算机。
展开
-
哈希表应用之字符子串统计
问题描述:给出一个字符串,包含nc中字符,求这个字符串中长度为n的字串(不包括重复的)的数量。题目中假设字串数目不超过16 000 000 个。输入第一行包含两个数字n nc,第二行输入字符串。输出符合要求的子串个数。 输入: 3 4 daababac 输出: 5题目中原创 2016-03-05 20:31:14 · 674 阅读 · 0 评论 -
POJ 2503
DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.原创 2016-03-09 23:11:20 · 237 阅读 · 0 评论