tree

package
v0.0.0-...-9dec8c7 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 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       int
	Left, Right *Node
}

func CreateNode

func CreateNode(Value int) *Node

func (Node) Print

func (node Node) Print()

(node Node)[接受者] 相当于其它语言的 this 这里是值传递

func (*Node) SetValue

func (node *Node) SetValue(Value int)

编译器会知道你是要值还是指针

func (*Node) Traverse

func (node *Node) Traverse()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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