MCPcopy Create free account
hub / github.com/Seogeurim/CS-study / TrieNode

Class TrieNode

contents/data-structure/code/Trie/TrieExample.java:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53class 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected