| 51 | } |
| 52 | |
| 53 | class TrieNode { |
| 54 | TrieNode[] children = new TrieNode[26]; |
| 55 | boolean isEnd; |
| 56 | |
| 57 | TrieNode getChild(char c) { |
| 58 | return children[c - 'a']; |
| 59 | } |
| 60 | |
| 61 | boolean hasChild(char c) { |
| 62 | return children[c - 'a'] != null; |
| 63 | } |
| 64 | } |
nothing calls this directly
no outgoing calls
no test coverage detected