bst

package
v0.0.0-...-e653932 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Value interface{}
	Left  *Node
	Right *Node
}

type Tree

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

func NewCompleteTree

func NewCompleteTree(data []int) *Tree

func (*Tree) Depth

func (t *Tree) Depth() int

func (*Tree) PreOrderTraversal

func (t *Tree) PreOrderTraversal()

Jump to

Keyboard shortcuts

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