Knuth-Morris-Pratt-Algorithm
LeetCode 459: Repeated Substring Pattern
·1 min
LeetCode
Easy
String
String-Matching
Z-Algorithm
Knuth-Morris-Pratt-Algorithm
LeetCode 459 note: s is a repetition of a substring exactly when s occurs in s + s with its first and last characters removed