binary_tree

package
v0.0.0-...-221e590 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 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 TreeNode

type TreeNode struct {
	Left  *TreeNode
	Right *TreeNode
	// contains filtered or unexported fields
}

func CreateTreeNode

func CreateTreeNode(value int) *TreeNode

func InitTree

func InitTree() *TreeNode

func (*TreeNode) GetTreeDegree

func (root *TreeNode) GetTreeDegree() int

func (*TreeNode) GetTreeNodeNum

func (root *TreeNode) GetTreeNodeNum() int

func (*TreeNode) InsertTreeNode

func (root *TreeNode) InsertTreeNode(value int)

func (*TreeNode) LevelOrderTraverse

func (root *TreeNode) LevelOrderTraverse()

func (*TreeNode) MidOrderTraverse

func (root *TreeNode) MidOrderTraverse()

func (*TreeNode) PostOrderTraverse

func (root *TreeNode) PostOrderTraverse()

func (*TreeNode) PreOrderTraverse

func (root *TreeNode) PreOrderTraverse()

func (*TreeNode) Search

func (root *TreeNode) Search(value int) *TreeNode

Jump to

Keyboard shortcuts

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