BSTMap

package
v0.0.0-...-adc727d Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 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 Constructor

func Constructor() *BSTMap

func (*BSTMap) Add

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

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

func (*BSTMap) Contains

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

func (*BSTMap) Get

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

func (*BSTMap) GetSize

func (this *BSTMap) GetSize() int

func (*BSTMap) IsEmpty

func (this *BSTMap) IsEmpty() bool

func (*BSTMap) Remove

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

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

func (*BSTMap) Set

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

func (*BSTMap) String

func (this *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