KMP
在字串s中,找到所有子串p的位置
說明使用時,直接傳入字串s和子串p。
所有子字串會在ids裡面找到
查看這些id可以用print()
程式碼
class KMP_t{
public:
Are you sure to leave this team?
Once you delete your team, all team notes will be deleted and cannot be recovered. Please ensure you've exported or transfered these notes.
Enter team name before deleting it:
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up