Trie
Problem
Implement a trie with insert
, search
, and startsWith
methods.
Example
1 | Trie trie = new Trie(); |
1 | class TrieNode: |
###
Implement a trie with insert
, search
, and startsWith
methods.
1 | Trie trie = new Trie(); |
1 | class TrieNode: |
###