Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
data class TrieNode(
2
var isWord: Boolean = false,
3
val children: HashMap<Char, TrieNode> = hashMapOf()
4
)
5
6
class Trie {
7
val root = TrieNode()
Callers
2
Trie
Class · 0.70
insert
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected