Help us shape the future of Go! Take the 2026 Go Developer Survey

BSTree

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BSNode

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

type BSTree

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

func NewBSTree

func NewBSTree() *BSTree

func (*BSTree) Delete

func (tree *BSTree) Delete(key Comparable)

func (*BSTree) Get

func (tree *BSTree) Get(key Comparable) (interface{}, bool)

func (*BSTree) Put

func (tree *BSTree) Put(key Comparable, data interface{}) interface{}

type Comparable

type Comparable interface {
	CompareTo(Comparable) int
}

Comparable 比较接口小于,返回负值,大于返回正值,等于返回0

type KV

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

Jump to

Keyboard shortcuts

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