예제 #1
0
        public long[] Solve(string text, long n, string[] patterns)
        {
            var trie = new Trie(patterns);

            return(trie.PatternMatching(text).ToArray());
        }
예제 #2
0
        public string[] Solve(long n, string[] patterns)
        {
            Trie myTrie = new Trie(patterns);

            return(myTrie.result.ToArray());
        }
예제 #3
0
        public string[] Solve(long n, string[] patterns)
        {
            var trie = Trie.ConstructTrie(n, patterns);

            return(Trie.Print(trie));
        }