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

Method HasSpace

project_euler/problem_18/root.go:48–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48func (n *Root) HasSpace() bool {
49 return n.NodeLeft == nil || n.NodeRight == nil
50}
51
52func (n *Root) LeftIsNil() bool {
53 return n.NodeLeft == nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected