摘要: 【KMP】Censoring 题目描述 Farmer John has purchased a subscription to Good Hooveskeeping magazine for his cows, so they have plenty of material to read whil 阅读全文
posted @ 2019-08-11 00:09 Osea 阅读(277) 评论(0) 推荐(0)
摘要: 【KMP】OKR-Periods of Words 题目描述 串是有限个小写字符的序列,特别的,一个空序列也可以是一个串。一个串P是串A的前缀,当且仅当存在串B,使得A=PB。如果P≠A并且P不是一个空串,那么我们说P是A的一个proper前缀。定义Q是A的周期,当且仅当Q是A的一个proper前缀 阅读全文
posted @ 2019-08-11 00:01 Osea 阅读(399) 评论(0) 推荐(1)