MCPcopy Create free account
hub / github.com/careercup/ctci / NewTree

Function NewTree

go/chapter04/binarytree/binarytree.go:86–88  ·  view source on GitHub ↗

New returns a new, empty binary tree

()

Source from the content-addressed store, hash-verified

84
85// New returns a new, empty binary tree
86func NewTree() *Tree {
87 return &Tree{nil, 0, nil, nil, false}
88}
89
90//NewMinimalHeightBST gives the minimal height tree from the given sorted array
91func NewMinimalHeightBST(arr []int, low int, high int) *Tree {

Callers 1

NewMinimalHeightBSTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected