binary_tree

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryTree

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

BinaryTree is a generic type buildt on top of a slice

func (*BinaryTree[T]) Insert

func (tt *BinaryTree[T]) Insert(item T)

func (BinaryTree[T]) IsEmpty

func (tt BinaryTree[T]) IsEmpty() bool

IsEmpty will return true if the binary-tree is empty

Jump to

Keyboard shortcuts

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