tree

package
v0.0.0-...-61cd50e Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Overview

Package tree 树结构相关包 给 package 的注释要有固定开头 同一个目录下的所有文件的 package 都一样

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
}

Node 树节点 / 结构名,变量名,方法名首字母大写时,对其他包可见,即 public

func (*Node) Print

func (node *Node) Print()

Print 打印 value 值

func (*Node) Traverse

func (node *Node) Traverse()

Traverse 中序遍历打印 方法的注释要以方法名开头 public 的方法必须要有注释

Jump to

Keyboard shortcuts

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