MCPcopy Create free account
hub / github.com/austingebauer/go-leetcode / Constructor

Function Constructor

implement_trie_208/solution.go:14–18  ·  view source on GitHub ↗

Returns a Trie

()

Source from the content-addressed store, hash-verified

12
13// Returns a Trie
14func Constructor() Trie {
15 return Trie{
16 root: &trieNode{},
17 }
18}
19
20// Inserts a word into the trie
21func (this *Trie) Insert(word string) {

Callers 1

TestTrieFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestTrieFunction · 0.56