
KMP
coding__girl
这个作者很懒,什么都没留下…
展开
-
HDU 1711 Number Sequence
Problem Description Given two sequences of numbers : a[1], a[2], …… , a[N], and b[1], b[2], …… , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a number K which make a[K] = b[1], a[K原创 2017-11-19 19:42:26 · 207 阅读 · 0 评论 -
poj 2406 Power Strings
Description Given two strings a and b we define a*b to be their concatenation. For example, if a = “abc” and b = “def” then a*b = “abcdef”. If we think of concatenation as multiplication, exponentiati原创 2017-11-21 11:38:41 · 182 阅读 · 0 评论