tree

package
v0.0.0-...-1e46814 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 2 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 struct {
	// contains filtered or unexported fields
}

func NewBinaryTree

func NewBinaryTree() *BinaryTree

func (*BinaryTree) Delete

func (t *BinaryTree) Delete(data Element)

func (*BinaryTree) Insert

func (t *BinaryTree) Insert(data Element) bool

func (*BinaryTree) Max

func (t *BinaryTree) Max() Element

func (*BinaryTree) Min

func (t *BinaryTree) Min() Element

func (*BinaryTree) String

func (t *BinaryTree) String() string

type Element

type Element interface {
	Less(e Element) bool
	String() string
}

type Node

type Node struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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