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

Function main

go/chapter04/binarytree/binarytree.go:142–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140}
141
142func main() {
143 //t1 := New(100, 1)
144 //fmt.Println(Compare(t1, New(100, 1)), "Same Contents")
145 //fmt.Println(Compare(t1, New(99, 1)), "Differing Sizes")
146 //fmt.Println(Compare(t1, New(100, 2)), "Differing Values")
147 //fmt.Println(Compare(t1, New(101, 2)), "Dissimilar")
148
149 inArr := []int{4, 5, 7, 8, 9}
150 t1 := NewMinimalHeightBST(inArr, 0, len(inArr)-1)
151 InOrderTraverse(t1)
152}

Callers

nothing calls this directly

Calls 2

NewMinimalHeightBSTFunction · 0.85
InOrderTraverseFunction · 0.85

Tested by

no test coverage detected