package
Version:
v0.0.0-...-a9cb292
Opens a new window with list of versions in this module.
Published: Nov 13, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Node struct {
Value int
Left, Right *Node
}
Node 是一个二叉树节点结构
func (node *Node) SetValue(value int)
SetValue 设置节点 Value 的值
func (node *Node) Traverse()
Traverse 中序遍历
func (node *Node) TraverseFunc(f func(*Node))
TraverseFunc 中序工具
func (node *Node) TraverseWithChannel() chan *Node
TraverseWithChannel 使用 channel 进行遍历
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.