kmp循环节

循环判断   i%(i-next[i]) == 0 && next[i] != 0

循环长度  i-next[i];

原文地址:https://www.cnblogs.com/mltang/p/9397301.html