search

package
v0.0.0-...-573cd34 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 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 BinaryTree

type BinaryTree[T constraints.Ordered] struct {
	// contains filtered or unexported fields
}

func (*BinaryTree[T]) Delete

func (b *BinaryTree[T]) Delete(key T)

func (*BinaryTree[T]) DeleteMin

func (b *BinaryTree[T]) DeleteMin()

func (*BinaryTree[T]) Get

func (b *BinaryTree[T]) Get(key T) any

func (*BinaryTree[T]) Keys

func (b *BinaryTree[T]) Keys(lowKey, highKey T) []T

func (*BinaryTree[T]) Min

func (b *BinaryTree[T]) Min() T

minimum key

func (*BinaryTree[T]) Print

func (b *BinaryTree[T]) Print(w io.Writer)

func (*BinaryTree[T]) Put

func (b *BinaryTree[T]) Put(key T, value any)

func (*BinaryTree[T]) Rank

func (b *BinaryTree[T]) Rank(key T) int

func (*BinaryTree[T]) Size

func (b *BinaryTree[T]) Size() int

Jump to

Keyboard shortcuts

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