public static void driver() { string test = "banana"; SuffixTree20_8 tree = new SuffixTree20_8(test); string sub = "b"; List <int> indexes = tree.getIndexes(sub); indexes = Node.node.indexes; foreach (int i in indexes) { Console.WriteLine("{0}: index = {1}", test.Substring(i), i); } }
static void Main(string[] args) { SuffixTree20_8.driver(); Console.ReadLine(); }
public static void driver() { string test = "banana"; SuffixTree20_8 tree = new SuffixTree20_8(test); string sub = "b"; List<int> indexes = tree.getIndexes(sub); indexes = Node.node.indexes; foreach (int i in indexes) Console.WriteLine("{0}: index = {1}", test.Substring(i), i); }