Data structure--KMP algorithm (string matching algorithm)--add a string at the end, it contains the string twice, and the length is the shortest

Add the string at the end, it contains the string twice and has the shortest length

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325203882&siteId=291194637