BinaryTree

package
v0.0.0-...-b590be1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2018 License: MIT Imports: 0 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 (*BinaryTree) InorderTraversal

func (tree *BinaryTree) InorderTraversal(subtree *Node, callback func(int))

func (*BinaryTree) InsertItem

func (tree *BinaryTree) InsertItem(i int)

func (*BinaryTree) PostorderTraversal

func (tree *BinaryTree) PostorderTraversal(subtree *Node, callback func(int))

func (*BinaryTree) PreorderTraversal

func (tree *BinaryTree) PreorderTraversal(subtree *Node, callback func(int))

func (*BinaryTree) SearchItem

func (tree *BinaryTree) SearchItem(i int) (*Node, bool)

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