public long[] Solve(string text, long n, string[] patterns) { var trie = new Trie(patterns); return(trie.PatternMatching(text).ToArray()); }
public string[] Solve(long n, string[] patterns) { Trie myTrie = new Trie(patterns); return(myTrie.result.ToArray()); }
public string[] Solve(long n, string[] patterns) { var trie = Trie.ConstructTrie(n, patterns); return(Trie.Print(trie)); }