bintree

package
v0.0.0-...-6a65668 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tree

type Tree struct {
	Left, Right *Tree
	Value       int
}

func Create

func Create(n int) (t *Tree)

creates an unbalanced binary tree

func (*Tree) Insert

func (t *Tree) Insert(v int) *Tree

func (*Tree) StatefulTraverse

func (t *Tree) StatefulTraverse(state string)

func (*Tree) Traverse

func (t *Tree) Traverse()

Jump to

Keyboard shortcuts

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