Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arnauddri/algorithms
/ NewNode
Function
NewNode
data-structures/binary-tree/bst.go:12–14 ·
view source on GitHub ↗
(i int)
Source
from the content-addressed store, hash-verified
10
}
11
12
func
NewNode(i int) *Node {
13
return
&Node{Value: i}
14
}
15
16
func
(n *Node) Compare(m *Node) int {
17
if
n.Value < m.Value {
Callers
1
TestTree
Function · 0.70
Calls
no outgoing calls
Tested by
1
TestTree
Function · 0.56