![KMP + 求最小循环节 --- POJ 2406 Power Strings KMP + 求最小循环节 --- POJ 2406 Power Strings](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
Power Strings
Problem's Link: http://poj.org/problem?id=2406
Mean:
给你一个字符串,让你求这个字符串最多能够被表示成最小循环节重复多少次得到。
analyse:
KMP之next数组的运用。裸的求最小循环节。
Time complexity: O(N)
Source code:
;
;
;);
) ;
}
/*
;
;);
) ;
}
/*
*/
Power Strings
Mean:
给你一个字符串,让你求这个字符串最多能够被表示成最小循环节重复多少次得到。
analyse:
KMP之next数组的运用。裸的求最小循环节。
Time complexity: O(N)
Source code:
*/