目前我使用两个嵌套for循环来生成字符串的所有子字符串。我听说Suffix Tree,但AFAIK Suffix Tree生成后缀不是子字符串。以下是目前我正在using- String s = "abacbccca";
int l = s.length();
for (short c = 0; c < l; c++) {
for (short r = 0;
我发现下面的代码在网上为后缀树 #include <stdio.h>
#define E 0
struct suffix_tree_node;
struct suffix_tree_link {
// 0 is e - global index of during string's end
unsigned long start;
unsigned lon