avlTree

package
v0.0.0-...-c78e9a9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AVLTree

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

func New

func New() AVLTree

func (*AVLTree) Add

func (t *AVLTree) Add(key Interface, data interface{})

func (*AVLTree) DisplayInorder

func (t *AVLTree) DisplayInorder()

func (*AVLTree) Remove

func (t *AVLTree) Remove(key Interface)

func (*AVLTree) Search

func (t *AVLTree) Search(key Interface) (node *Node)

func (*AVLTree) Update

func (t *AVLTree) Update(oldKey, newKey Interface, newData interface{})

type Interface

type Interface interface {
	Cmp(Interface) int
}

type Node

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

Jump to

Keyboard shortcuts

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