コード例 #1
0
        public void Prefix_Tree()
        {
            // Your Trie object will be instantiated and called as such:
            PrefixTree trie = new PrefixTree();
            trie.Insert("fleet");
            trie.Insert("flight");

            Assert.IsTrue(trie.StartsWith("fl"));
        }