Documentation ¶
Index ¶
- type BST
- func (bst *BST[T]) Delete(value T) error
- func (bst *BST[T]) FindMax() (T, error)
- func (bst *BST[T]) FindMin() (T, error)
- func (bst *BST[T]) InorderTraversal(f func(T))
- func (bst *BST[T]) Insert(value T) error
- func (bst *BST[T]) IsEmpty() bool
- func (bst *BST[T]) PostorderTraversal(f func(T))
- func (bst *BST[T]) PreorderTraversal(f func(T))
- func (bst *BST[T]) Search(value T) bool
- func (bst *BST[T]) Size() int
- type Ordered
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BST ¶
type BST[T Ordered] struct { // contains filtered or unexported fields }
func (*BST[T]) InorderTraversal ¶
func (bst *BST[T]) InorderTraversal(f func(T))
func (*BST[T]) PostorderTraversal ¶
func (bst *BST[T]) PostorderTraversal(f func(T))
func (*BST[T]) PreorderTraversal ¶
func (bst *BST[T]) PreorderTraversal(f func(T))
type Ordered ¶
type Ordered interface { constraints.Ordered }
Click to show internal directories.
Click to hide internal directories.