KMP 算法

KMP 初学 KMP 算法分为两个步骤。 1 是计算出 next 数组, 2 是根据 next 数组来求得 index 。

原文地址:https://www.cnblogs.com/stul/p/11790479.html