binaryTree

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

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

Go to latest
Published: May 13, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InOrder

func InOrder(root *Node) []int

func LevelOrder

func LevelOrder(root *Node) [][]int

func Morris

func Morris(root *Node)

Morris 空间复杂下降到1

func PostOrder

func PostOrder(root *Node) []int

深度搜索,从下到上,分治 左右中

func PreDfs

func PreDfs(root *Node) []int

深度搜索从上到下

func PreDivide

func PreDivide(root *Node) []int

深度搜索,从下到上

func PreOrder

func PreOrder(root *Node) []int

print proOrder num

Types

type Node

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

Directories

Path Synopsis
bfs

Jump to

Keyboard shortcuts

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