NTHU-CP / NTHU-CPP

前人種樹,後人持久化🌴
https://nthu-cp.github.io/NTHU-CPP/
20 stars 32 forks source link

Add KMP #37

Open eirc0329 opened 1 year ago

eirc0329 commented 1 year ago

Outline:

Problems:

https://codeforces.com/problemset/problem/535/D https://codeforces.com/problemset/problem/471/D https://codeforces.com/contest/432/problem/D

Reference:

https://cp-algorithms.com/string/prefix-function.html https://oi-wiki.org/string/kmp/ https://www.geeksforgeeks.org/remove-all-occurrences-of-string-t-in-string-s-using-kmp-algorithm/?ref=rp https://labuladong.gitbook.io/algo-en/i.-dynamic-programming/kmpcharactermatchingalgorithmindynamicprogramming#i.-overview-of-kmp-algorithm

harry900831 commented 1 year ago

Maybe you need more section under "Introduction to KMP algorithm"