BSTMap

package
v0.0.0-...-0ac8916 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 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 BSTMap

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

func New

func New() *BSTMap

func (*BSTMap) Add

func (bm *BSTMap) Add(key interface{}, val interface{})

向二分搜索树中添加新的元素(key, value)

func (*BSTMap) Contains

func (bm *BSTMap) Contains(key interface{}) bool

func (*BSTMap) Get

func (bm *BSTMap) Get(key interface{}) interface{}

func (*BSTMap) GetSize

func (bm *BSTMap) GetSize() int

func (*BSTMap) IsEmpty

func (bm *BSTMap) IsEmpty() bool

func (*BSTMap) Remove

func (bm *BSTMap) Remove(key interface{}) interface{}

从二分搜索树中删除键为key的节点

func (*BSTMap) Set

func (bm *BSTMap) Set(key interface{}, val interface{})

func (*BSTMap) String

func (bm *BSTMap) String() string

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