I know the problems are different, but I still attempt to try to solve it with KMP algorithm.
Anyone have any idea?
why is this a kmp algorithm? Kmp is exact matching algorithm
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.