MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Tree

Struct Tree

project_euler/problem_18/tree.go:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6)
7
8type Tree struct {
9 Root *Root
10 Nodes map[int]struct{}
11 ID int
12}
13
14func (t *Tree) BFSInsert(value NodeValue) {
15 t.Nodes = make(map[int]struct{}) // Reset the nodes map

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected