MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / Insert

Method Insert

structure/trie/trie.go:36–40  ·  view source on GitHub ↗

Insert zero, one or more words at a Trie node.

(s ...string)

Source from the content-addressed store, hash-verified

34
35// Insert zero, one or more words at a Trie node.
36func (n *Node) Insert(s ...string) {
37 for _, ss := range s {
38 n.insert(ss)
39 }
40}
41
42// Find words at a Trie node.
43func (n *Node) Find(s string) bool {

Callers 9

BenchmarkTrie_InsertFunction · 0.95
ExampleNodeFunction · 0.95
TestTrieInsertFunction · 0.95
TestTrieRemoveFunction · 0.95

Calls 1

insertMethod · 0.95

Tested by 9

BenchmarkTrie_InsertFunction · 0.76
ExampleNodeFunction · 0.76
TestTrieInsertFunction · 0.76
TestTrieRemoveFunction · 0.76