bTree

package
v0.0.0-...-d9d11fa Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MidOrderTraversal

func MidOrderTraversal(node *Node)

func PostOrderTraversal

func PostOrderTraversal(node *Node)

func PreOrderTraversal

func PreOrderTraversal(node *Node)

Types

type BST

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

func NewBST

func NewBST(node *Node) *BST

func (*BST) Insert

func (b *BST) Insert(d int) error

type Node

type Node struct {
	D     int // node data
	Left  *Node
	Right *Node
}

func NewNode

func NewNode(d int) *Node

func (*Node) PrintD

func (n *Node) PrintD()

Jump to

Keyboard shortcuts

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