tree

package
v0.0.0-...-7788d34 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 0 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 {
	Val   int
	Left  *Node
	Right *Node
}

func NewTree

func NewTree() (t *Node)

func (*Node) InOrder

func (n *Node) InOrder() []int

func (*Node) PostOrder

func (n *Node) PostOrder() []int

func (*Node) PreOrder

func (n *Node) PreOrder() []int

type Treeable

type Treeable interface {
	PreOrder() []int
	InOrder() []int
	PostOrder() []int
}

Jump to

Keyboard shortcuts

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