摘要: 给定两个由英文字母组成的字符串 String 和 Pattern,要求找到 Pattern 在 String 中第一次出现的位置,并将此位置后的 String 的子串输出。如果找不到,则输出“Not Found”。 本题旨在测试各种不同的匹配算法在各种数据情况下的表现。各组测试数据特点如下: 数据0 阅读全文
posted @ 2018-11-30 13:36 王清河 阅读(1658) 评论(0) 推荐(0) 编辑
摘要: Given a hash table of size N, we can define a hash function (. Suppose that the linear probing is used to solve collisions, we can easily obtain the s 阅读全文
posted @ 2018-11-30 11:43 王清河 阅读(1814) 评论(0) 推荐(0) 编辑