@Test public void prefixSearch44() throws Exception { TrieTree trieTree = new TrieTree(); trieTree.insert("a"); trieTree.insert("b"); trieTree.insert("c"); trieTree.insert("d"); trieTree.insert("e"); trieTree.insert("f"); trieTree.insert("g"); trieTree.insert("h"); }
public void insert(String data) { this.insert(this.root, data); }
TrieTree { public void insert(String data) { this.insert(this.root, data); } }
TrieTree { public void insert(String data) { this.insert(this.root, data); } TrieTree(); }
TrieTree { public void insert(String data) { this.insert(this.root, data); } TrieTree(); void insert(String data); List<String> prefixSearch(String key); List<String> all(); List<String> depth(Node node, List<String> list, char[] chars, int index); }
TrieTree { public void insert(String data) { this.insert(this.root, data); } TrieTree(); void insert(String data); List<String> prefixSearch(String key); List<String> all(); List<String> depth(Node node, List<String> list, char[] chars, int index);  }