Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BSTree ¶
type BSTree struct {
// contains filtered or unexported fields
}
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
Click to show internal directories.
Click to hide internal directories.