Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文章中关于字典树的介绍,查找的第5步似乎有误? #192

Open
arika163 opened this issue Oct 19, 2021 · 1 comment
Open

Comments

@arika163
Copy link

文中有这样一句:
找到后,我们endIndex后移,并使startIndex = endIndex,treeIndex重新指向ROOT,开启新一轮的匹配。重复这个过程,就完成了查找。

如果在例子中增加一个模式串tda,采用这种移动方式会导致漏过模式串,这里是不是应该将startIndex后移一位,并使endIndex = startIndex?

@CyXiaoFeng
Copy link

当执行检查的时候:return mint.verify(msg)
出错,错误如下 :
TypeError: oKey.toLowerCase is not a function
at Mint.search (H:\chatgpt-vercel-office\node_modules.pnpm\[email protected]\node_modules\mint-filter\dist\main\index.js:48:30)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants