tree

package
v0.0.0-...-1c8a91e Latest Latest
Warning

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

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

README

利用函数式编程实现树的中序遍历

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Value       int
	Left, Right *Node
}

func CreateNode

func CreateNode(value int) *Node

func CreateNode_1

func CreateNode_1() *Node

struct赋值方法

func (Node) Print

func (node Node) Print()

func (*Node) SetValue

func (node *Node) SetValue(value int)

func (*Node) Traverse

func (node *Node) Traverse()

func (*Node) TraverseFunc

func (node *Node) TraverseFunc(f func(*Node))

函数作为参数传递

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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