public final class TrieNode extends Object
Constructor and Description |
---|
TrieNode() |
Modifier and Type | Method and Description |
---|---|
TrieNode |
insert(String path)
Inserts a path into the trie.
|
List<TrieNode> |
search(String path)
Traverses the trie along the path components until the traversal cannot proceed any more.
|
public TrieNode insert(String path)
path
- a path with components separated by "/"Copyright © 2023. All Rights Reserved.