Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个大字符串 A 和一组相对较小的字符串 B*。
如何有效地从 A 中的 B* 中找到每个字符串的出现次数?
我怀疑后缀树可以在这里使用,但我不知道该怎么做。