MCPcopy Index your code
hub / github.com/0xAX/go-algorithms / New

Function New

binaryTree/binaryTree.go:12–17  ·  view source on GitHub ↗
(compareFun Comparable)

Source from the content-addressed store, hash-verified

10}
11
12func New(compareFun Comparable) *BinaryTree {
13 return &BinaryTree{
14 node: nil,
15 lessFun: compareFun,
16 }
17}
18
19func (tree *BinaryTree) Search(value interface{}) *BinaryTree {
20 if tree.node == nil {

Callers 3

Test_binaryTreeFunction · 0.70
Test_minmaxFunction · 0.70
InsertMethod · 0.70

Calls

no outgoing calls

Tested by 2

Test_binaryTreeFunction · 0.56
Test_minmaxFunction · 0.56