bst

package module
v0.0.0-...-3366535 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Unlicense Imports: 1 Imported by: 0

README

BST

Go Doc

A simple Binary Search Tree implementation using generics.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BST

type BST[T constraints.Ordered] struct {
	// contains filtered or unexported fields
}

func (*BST[T]) Contains

func (b *BST[T]) Contains(val T) bool

func (*BST[T]) Insert

func (b *BST[T]) Insert(val T)

func (*BST[T]) Remove

func (b *BST[T]) Remove(val T)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL