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

Method Left

project_euler/problem_18/leaf.go:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15func (n *Leaf) Left() Node {
16 if n.NodeLeft != nil {
17 n.NodeLeft.Parent = n // Leaf is the parent of its left child always
18 }
19
20 return n.NodeLeft
21}
22
23func (n *Leaf) Right() Node {
24 return n.NodeRight

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected