AVLTree

package
v0.0.0-...-36e34b5 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 3 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[T utils.Ordered] struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New[T utils.Ordered]() *AVLTree[T]

func (*AVLTree[T]) Contains

func (B *AVLTree[T]) Contains(element T) bool

func (*AVLTree[T]) Insert

func (B *AVLTree[T]) Insert(element T)

func (*AVLTree[T]) Length

func (B *AVLTree[T]) Length() int64

func (*AVLTree[T]) Remove

func (B *AVLTree[T]) Remove(element T) (valueReturn T)

func (*AVLTree[T]) Traverse

func (B *AVLTree[T]) Traverse() (arr []T)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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