binarytree

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 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 {
	Root *Node
}

func NewBinaryTree

func NewBinaryTree(root *Node) *BinaryTree

func NewBinaryTreeInstance

func NewBinaryTreeInstance() *BinaryTree

func (*BinaryTree) Add

func (bt *BinaryTree) Add(data Object)

func (*BinaryTree) LevelOrder

func (bt *BinaryTree) LevelOrder()

type Node

type Node struct {
	Data       Object
	LeftChild  *Node
	RightChild *Node
}

type Object

type Object interface{}

Jump to

Keyboard shortcuts

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