MCPcopy Create free account
hub / github.com/0xAX/go-algorithms / newNode

Function newNode

sorting/treesort.go:18–20  ·  view source on GitHub ↗

allocating a new node

(val int)

Source from the content-addressed store, hash-verified

16
17// allocating a new node
18func newNode(val int) *node {
19 return &node{val, nil, nil}
20}
21
22// insert nodes into a binary search tree
23func insert(root *node, val int) *node {

Callers 1

insertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected