Documentation ¶
Index ¶
- type AVLTree
- func (t *AVLTree[T]) At(k uint) (T, error)
- func (t *AVLTree[T]) Clear()
- func (t *AVLTree[T]) Contains(value T) bool
- func (t *AVLTree[T]) Delete(value T)
- func (t *AVLTree[T]) Empty() bool
- func (t *AVLTree[T]) Height() int
- func (t *AVLTree[T]) Index(value T) uint
- func (t *AVLTree[T]) Insert(value T)
- func (t *AVLTree[T]) Predecessor(value T) (T, error)
- func (t *AVLTree[T]) Size() uint
- func (t *AVLTree[T]) Successor(value T) (T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AVLTree ¶
type AVLTree[T constraints.Ordered] struct { // contains filtered or unexported fields }
func New ¶
func New[T constraints.Ordered]() *AVLTree[T]
func (*AVLTree[T]) Predecessor ¶
Click to show internal directories.
Click to hide internal directories.