bitree

package
v0.0.0-...-e4d13b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrByLogical = errors.New("logical error")

Functions

This section is empty.

Types

type BiTree

type BiTree struct {
	// contains filtered or unexported fields
}

func BiTreeMerge

func BiTreeMerge(left, right *BiTree, data interface{}) *BiTree

func NewBiTree

func NewBiTree() *BiTree

func (*BiTree) InsertLeft

func (b *BiTree) InsertLeft(n *BiTreeNode, data interface{})

func (*BiTree) InsertRight

func (b *BiTree) InsertRight(n *BiTreeNode, data interface{})

func (*BiTree) RemoveLeft

func (b *BiTree) RemoveLeft(n *BiTreeNode)

func (*BiTree) RemoveRight

func (b *BiTree) RemoveRight(n *BiTreeNode)

func (*BiTree) Root

func (b *BiTree) Root() *BiTreeNode

func (*BiTree) Size

func (b *BiTree) Size() int

type BiTreeNode

type BiTreeNode struct {
	// contains filtered or unexported fields
}

func (*BiTreeNode) Data

func (b *BiTreeNode) Data() interface{}

func (*BiTreeNode) Left

func (b *BiTreeNode) Left() *BiTreeNode

func (*BiTreeNode) Right

func (b *BiTreeNode) Right() *BiTreeNode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL