Documentation ¶
Index ¶
- type AVLTree
- func (this *AVLTree) Add(key interface{}, value interface{})
- func (this *AVLTree) Contains(key interface{}) bool
- func (this *AVLTree) Get(key interface{}) interface{}
- func (this *AVLTree) GetSize() int
- func (this *AVLTree) IsBST() bool
- func (this *AVLTree) IsBalanced() bool
- func (this *AVLTree) IsEmpty() bool
- func (this *AVLTree) Remove(key interface{}) interface{}
- func (this *AVLTree) Set(key interface{}, value interface{})
- func (this *AVLTree) String() string
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AVLTree ¶
type AVLTree struct {
// contains filtered or unexported fields
}
func Constructor ¶
func Constructor() *AVLTree
func (*AVLTree) Add ¶
func (this *AVLTree) Add(key interface{}, value interface{})
向二分搜索树中添加新的元素(key, value)
Click to show internal directories.
Click to hide internal directories.