Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Go
/ HasSpace
Method
HasSpace
project_euler/problem_18/leaf.go:61–63 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
59
}
60
61
func
(n *Leaf) HasSpace() bool {
62
return
n.NodeLeft == nil || n.NodeRight == nil
63
}
64
65
func
(n *Leaf) LeftIsNil() bool {
66
return
n.NodeLeft == nil
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected