MCPcopy Create free account
hub / github.com/ByteByteGoHq/coding-interview-patterns / TrieNode

Class TrieNode

kotlin/Tries/DesignATrie.kt:1–4  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1data class TrieNode(
2 var isWord: Boolean = false,
3 val children: HashMap<Char, TrieNode> = hashMapOf()
4)
5
6class Trie {
7 val root = TrieNode()

Callers 2

TrieClass · 0.70
insertMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected