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

Struct BinaryTree

binaryTree/binaryTree.go:5–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3type Comparable func(c1 interface{}, c2 interface{}) bool
4
5type BinaryTree struct {
6 node interface{}
7 left *BinaryTree
8 right *BinaryTree
9 lessFun Comparable
10}
11
12func New(compareFun Comparable) *BinaryTree {
13 return &BinaryTree{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected